From a1bd60b34891ccc77056c190d7871bc4b14fe654 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 21:31:21 +0000 Subject: 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 --- kweather/dockwidget.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'kweather/dockwidget.h') 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; }; -- cgit v1.2.1