summaryrefslogtreecommitdiffstats
path: root/kweather
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:05:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 18:19:31 +0900
commit8f9e8c882373f01e38599281c1c4e0d667b1f2f2 (patch)
tree648b0c69b1a4fb37277df76134b6f27287de8a05 /kweather
parent76679027e6f0d3eb77f5f5dc3dd9378e01c1bf94 (diff)
downloadtdetoys-8f9e8c882373f01e38599281c1c4e0d667b1f2f2.tar.gz
tdetoys-8f9e8c882373f01e38599281c1c4e0d667b1f2f2.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ebce9b53863b1ccf1cc2f84eb556d50ec28beeaf)
Diffstat (limited to 'kweather')
-rw-r--r--kweather/dockwidget.cpp2
-rw-r--r--kweather/dockwidget.h2
-rw-r--r--kweather/kweather.cpp6
3 files changed, 5 insertions, 5 deletions
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 <kiconloader.h>
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;