summaryrefslogtreecommitdiffstats
path: root/kworldwatch/cities.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/cities.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/cities.h')
-rw-r--r--kworldwatch/cities.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kworldwatch/cities.h b/kworldwatch/cities.h
index 9c55c37..6f08f24 100644
--- a/kworldwatch/cities.h
+++ b/kworldwatch/cities.h
@@ -29,9 +29,9 @@
#define CITIES_H
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qptrlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqptrlist.h>
class QPainter;
@@ -41,8 +41,8 @@ class City
{
public:
- City(const QString &n, double la, double lo) : _name(n), _latitude(la), _longitude(lo) {};
- QString name() { return _name; };
+ City(const TQString &n, double la, double lo) : _name(n), _latitude(la), _longitude(lo) {};
+ TQString name() { return _name; };
double latitude() { return _latitude; };
double longitude() { return _longitude; };
@@ -50,7 +50,7 @@ public:
private:
- QString _name;
+ TQString _name;
double _latitude, _longitude;
};
@@ -62,24 +62,24 @@ public:
CityList();
~CityList();
- void paint(QPainter *p, int width, int height, int offset);
+ void paint(TQPainter *p, int width, int height, int offset);
- City *getNearestCity(int w, int h, int offset, int x, int y, QPoint &where);
+ City *getNearestCity(int w, int h, int offset, int x, int y, TQPoint &where);
- QStringList timezones();
+ TQStringList timezones();
private:
void readCityLists();
- void readCityList(const QString &fname);
+ void readCityList(const TQString &fname);
- QPoint getPosition(double la, double lo, int w, int h, int offset);
+ TQPoint getPosition(double la, double lo, int w, int h, int offset);
private:
- QPtrList<City> _cities;
+ TQPtrList<City> _cities;
};