diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kweather/dockwidget.h | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kweather/dockwidget.h')
-rw-r--r-- | kweather/dockwidget.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kweather/dockwidget.h b/kweather/dockwidget.h index 4c8e478..72c1a43 100644 --- a/kweather/dockwidget.h +++ b/kweather/dockwidget.h @@ -28,19 +28,20 @@ class TQLabel; class WeatherService_stub; class WeatherButton; -class dockwidget : public QWidget +class dockwidget : public TQWidget { Q_OBJECT + TQ_OBJECT public: - dockwidget(const TQString &location, TQWidget *parent=0, const char *name=0); + dockwidget(const TQString &location, TQWidget *tqparent=0, const char *name=0); ~dockwidget(); enum {ShowIconOnly=1, ShowTempOnly=2, ShowAll=3 }; void setLocationCode(const TQString &locationCode); void setViewMode(int); - void setOrientation(Orientation o) { m_orientation = o; } + void setOrientation(Qt::Orientation o) { m_orientation = o; } /** resize the view **/ void resizeView(const TQSize &size); int widthForHeight(int h); @@ -64,7 +65,7 @@ private: TQLabel *m_lblTemp; TQLabel *m_lblWind; TQLabel *m_lblPres; - Orientation m_orientation; + Qt::Orientation m_orientation; WeatherService_stub *m_weatherService; }; |