summaryrefslogtreecommitdiffstats
path: root/kontact/plugins/weather/summarywidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/weather/summarywidget.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kontact/plugins/weather/summarywidget.h')
-rw-r--r--kontact/plugins/weather/summarywidget.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/kontact/plugins/weather/summarywidget.h b/kontact/plugins/weather/summarywidget.h
index 40e0bb705..9af476903 100644
--- a/kontact/plugins/weather/summarywidget.h
+++ b/kontact/plugins/weather/summarywidget.h
@@ -28,12 +28,12 @@
#include <dcopobject.h>
-#include <qmap.h>
-#include <qpixmap.h>
-#include <qptrlist.h>
-#include <qstringlist.h>
-#include <qtimer.h>
-#include <qwidget.h>
+#include <tqmap.h>
+#include <tqpixmap.h>
+#include <tqptrlist.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
+#include <tqwidget.h>
class KProcess;
@@ -44,44 +44,44 @@ class QVBoxLayout;
class WeatherData
{
public:
- void setIcon( const QPixmap &icon ) { mIcon = icon; }
- QPixmap icon() const { return mIcon; }
+ void setIcon( const TQPixmap &icon ) { mIcon = icon; }
+ TQPixmap icon() const { return mIcon; }
- void setName( const QString &name ) { mName = name; }
- QString name() const { return mName; }
+ void setName( const TQString &name ) { mName = name; }
+ TQString name() const { return mName; }
- void setCover( const QStringList& cover ) { mCover = cover; }
- QStringList cover() const { return mCover; }
+ void setCover( const TQStringList& cover ) { mCover = cover; }
+ TQStringList cover() const { return mCover; }
- void setDate( const QString &date ) { mDate = date; }
- QString date() const { return mDate; }
+ void setDate( const TQString &date ) { mDate = date; }
+ TQString date() const { return mDate; }
- void setTemperature( const QString &temperature ) { mTemperature = temperature; }
- QString temperature() const { return mTemperature; }
+ void setTemperature( const TQString &temperature ) { mTemperature = temperature; }
+ TQString temperature() const { return mTemperature; }
- void setWindSpeed( const QString &windSpeed ) { mWindSpeed = windSpeed; }
- QString windSpeed() const { return mWindSpeed; }
+ void setWindSpeed( const TQString &windSpeed ) { mWindSpeed = windSpeed; }
+ TQString windSpeed() const { return mWindSpeed; }
- void setRelativeHumidity( const QString &relativeHumidity ) { mRelativeHumidity = relativeHumidity; }
- QString relativeHumidity() const { return mRelativeHumidity; }
+ void setRelativeHumidity( const TQString &relativeHumidity ) { mRelativeHumidity = relativeHumidity; }
+ TQString relativeHumidity() const { return mRelativeHumidity; }
- void setStationID( const QString &station ) { mStationID = station;}
- QString stationID() { return mStationID; }
+ void setStationID( const TQString &station ) { mStationID = station;}
+ TQString stationID() { return mStationID; }
bool operator< ( const WeatherData &data )
{
- return ( QString::localeAwareCompare( mName, data.mName ) < 0 );
+ return ( TQString::localeAwareCompare( mName, data.mName ) < 0 );
}
private:
- QPixmap mIcon;
- QString mName;
- QStringList mCover;
- QString mDate;
- QString mTemperature;
- QString mWindSpeed;
- QString mRelativeHumidity;
- QString mStationID;
+ TQPixmap mIcon;
+ TQString mName;
+ TQStringList mCover;
+ TQString mDate;
+ TQString mTemperature;
+ TQString mWindSpeed;
+ TQString mRelativeHumidity;
+ TQString mStationID;
};
class SummaryWidget : public Kontact::Summary, public DCOPObject
@@ -89,33 +89,33 @@ class SummaryWidget : public Kontact::Summary, public DCOPObject
Q_OBJECT
K_DCOP
public:
- SummaryWidget( QWidget *parent, const char *name = 0 );
+ SummaryWidget( TQWidget *parent, const char *name = 0 );
- QStringList configModules() const;
+ TQStringList configModules() const;
void updateSummary( bool force = false );
k_dcop:
- virtual void refresh( QString );
- virtual void stationRemoved( QString );
+ virtual void refresh( TQString );
+ virtual void stationRemoved( TQString );
protected:
- virtual bool eventFilter( QObject *obj, QEvent *e );
+ virtual bool eventFilter( TQObject *obj, TQEvent *e );
private slots:
void updateView();
void timeout();
- void showReport( const QString& );
+ void showReport( const TQString& );
void reportFinished( KProcess* );
private:
- QStringList mStations;
- QMap<QString, WeatherData> mWeatherMap;
- QTimer mTimer;
+ TQStringList mStations;
+ TQMap<TQString, WeatherData> mWeatherMap;
+ TQTimer mTimer;
- QPtrList<QLabel> mLabels;
- QPtrList<QGridLayout> mLayouts;
- QVBoxLayout *mLayout;
+ TQPtrList<TQLabel> mLabels;
+ TQPtrList<TQGridLayout> mLayouts;
+ TQVBoxLayout *mLayout;
KProcess* mProc;
};