From ebce9b53863b1ccf1cc2f84eb556d50ec28beeaf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 8 Nov 2023 11:05:29 +0900 Subject: Replace Qt with TQt Signed-off-by: Michele Calgaro --- kweather/dockwidget.cpp | 2 +- kweather/dockwidget.h | 2 +- kweather/kweather.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kweather') diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp index 744ab91..11d45ea 100644 --- a/kweather/dockwidget.cpp +++ b/kweather/dockwidget.cpp @@ -32,7 +32,7 @@ #include dockwidget::dockwidget(const TQString &location, TQWidget *parent, - const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(Qt::Horizontal ) + const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(TQt::Horizontal ) { m_font = TDEGlobalSettings::generalFont(); setBackgroundOrigin( AncestorOrigin ); diff --git a/kweather/dockwidget.h b/kweather/dockwidget.h index dfdca05..89c5133 100644 --- a/kweather/dockwidget.h +++ b/kweather/dockwidget.h @@ -41,7 +41,7 @@ public: void setLocationCode(const TQString &locationCode); void setViewMode(int); - void setOrientation(Qt::Orientation o) { m_orientation = o; } + void setOrientation(TQt::Orientation o) { m_orientation = o; } /** resize the view **/ void resizeView(const TQSize &size); int widthForHeight(int h); diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp index 8d0b618..1a215f4 100644 --- a/kweather/kweather.cpp +++ b/kweather/kweather.cpp @@ -302,7 +302,7 @@ void kweather::timeout() int kweather::widthForHeight(int h) const { //kdDebug(12004) << "widthForHeight " << h << endl; - dockWidget->setOrientation(Qt::Horizontal); + dockWidget->setOrientation(TQt::Horizontal); int w = dockWidget->widthForHeight(h); return w; } @@ -310,7 +310,7 @@ int kweather::widthForHeight(int h) const int kweather::heightForWidth(int w) const { kdDebug(12004) << "heightForWidth " << w<< endl; - dockWidget->setOrientation(Qt::Vertical); + dockWidget->setOrientation(TQt::Vertical); int h = dockWidget->heightForWidth( w ); return h; } @@ -373,7 +373,7 @@ void kweather::slotPrefsAccepted() void kweather::mousePressEvent(TQMouseEvent *e) { - if ( e->button() != Qt::RightButton ) + if ( e->button() != TQt::RightButton ) { KPanelApplet::mousePressEvent( e ); return; -- cgit v1.2.1