summaryrefslogtreecommitdiffstats
path: root/kworldwatch/mapwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:49:52 +0000
commitcfc42a28c327b96c6a2afee92af3bac1a479eb8a (patch)
treee3219edf5f827eaa4db3feb509a17846a1a5a752 /kworldwatch/mapwidget.h
parenta73fc4d7e66fe0824313aa4e9a650c4cddef6e9f (diff)
downloadtdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.tar.gz
tdetoys-cfc42a28c327b96c6a2afee92af3bac1a479eb8a.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kworldwatch/mapwidget.h')
-rw-r--r--kworldwatch/mapwidget.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/kworldwatch/mapwidget.h b/kworldwatch/mapwidget.h
index 54e4f58..d23b5c7 100644
--- a/kworldwatch/mapwidget.h
+++ b/kworldwatch/mapwidget.h
@@ -32,12 +32,12 @@
#include <time.h>
-#include <qwidget.h>
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qlabel.h>
-#include <qpoint.h>
-#include <qtimer.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqlabel.h>
+#include <tqpoint.h>
+#include <tqtimer.h>
class QPopupMenu;
@@ -59,10 +59,10 @@ class MapWidget : public QWidget
public:
- MapWidget(bool applet=false, bool restore=false, QWidget *parent=0, const char *name=0);
+ MapWidget(bool applet=false, bool restore=false, TQWidget *parent=0, const char *name=0);
~MapWidget();
- void setTheme(const QString &theme);
+ void setTheme(const TQString &theme);
void setTime(struct tm *time);
void setIllumination(bool i);
void setCities(bool c);
@@ -74,15 +74,15 @@ public:
void updateBackground();
- QPixmap getPixmap();
- QPopupMenu* contextMenu() const { return _popup; }
+ TQPixmap getPixmap();
+ TQPopupMenu* contextMenu() const { return _popup; }
- void paintContents(QPainter *p);
- QPixmap calculatePixmap();
+ void paintContents(TQPainter *p);
+ TQPixmap calculatePixmap();
signals:
- void addClockClicked(const QString &zone);
+ void addClockClicked(const TQString &zone);
void saveSettings();
@@ -107,12 +107,12 @@ public slots:
protected:
- void resizeEvent(QResizeEvent *ev);
- void paintEvent(QPaintEvent *ev);
- void mousePressEvent(QMouseEvent *ev);
- void mouseMoveEvent(QMouseEvent *ev);
- void enterEvent(QEvent *ev);
- void leaveEvent(QEvent *ev);
+ void resizeEvent(TQResizeEvent *ev);
+ void paintEvent(TQPaintEvent *ev);
+ void mousePressEvent(TQMouseEvent *ev);
+ void mouseMoveEvent(TQMouseEvent *ev);
+ void enterEvent(TQEvent *ev);
+ void leaveEvent(TQEvent *ev);
private slots:
@@ -125,34 +125,34 @@ private slots:
private:
void updateMap();
- QString cityTime(const QString &city);
- void showIndicator(const QPoint &pos);
+ TQString cityTime(const TQString &city);
+ void showIndicator(const TQPoint &pos);
MapLoader _loader;
- QString _theme;
+ TQString _theme;
- QPixmap _pixmap;
+ TQPixmap _pixmap;
int gmt_position;
time_t sec;
- QPopupMenu *_popup, *_themePopup, *_flagPopup;
- QPtrList<MapTheme> _themes;
+ TQPopupMenu *_popup, *_themePopup, *_flagPopup;
+ TQPtrList<MapTheme> _themes;
bool _illumination, _cities, _flags;
int _illuminationID, _citiesID, _flagsID;
CityList *_cityList;
- QLabel *_cityIndicator;
- QString _currentCity;
+ TQLabel *_cityIndicator;
+ TQString _currentCity;
FlagList *_flagList;
- QPoint _flagPos;
+ TQPoint _flagPos;
bool _applet;
- QTimer m_timer;
+ TQTimer m_timer;
int _width, _height;
};