From cfc42a28c327b96c6a2afee92af3bac1a479eb8a Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:49:52 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1157650 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kworldwatch/maploader.cpp | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kworldwatch/maploader.cpp') diff --git a/kworldwatch/maploader.cpp b/kworldwatch/maploader.cpp index 236abd3..c1e3896 100644 --- a/kworldwatch/maploader.cpp +++ b/kworldwatch/maploader.cpp @@ -27,12 +27,12 @@ */ #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -45,12 +45,12 @@ #include "maploader.h" -QPtrList MapLoader::themes() +TQPtrList MapLoader::themes() { - QPtrList result; + TQPtrList result; - QStringList files = KGlobal::dirs()->findAllResources("data", "kworldclock/maps/*/*.desktop"); - for (QStringList::Iterator it=files.begin(); it != files.end(); ++it) + TQStringList files = KGlobal::dirs()->findAllResources("data", "kworldclock/maps/*/*.desktop"); + for (TQStringList::Iterator it=files.begin(); it != files.end(); ++it) { KDesktopFile conf(*it); conf.setGroup("Theme"); @@ -61,20 +61,20 @@ QPtrList MapLoader::themes() } -QStringList MapLoader::maps(const QString &theme) +TQStringList MapLoader::maps(const TQString &theme) { - return KGlobal::dirs()->findAllResources("data", QString("kworldclock/maps/%1/*.jpg").arg(theme)); + return KGlobal::dirs()->findAllResources("data", TQString("kworldclock/maps/%1/*.jpg").arg(theme)); } -void MapLoader::load(unsigned int width, const QString &theme, unsigned int height, float opacity) +void MapLoader::load(unsigned int width, const TQString &theme, unsigned int height, float opacity) { // find the maps available - QValueList sizes; - QStringList files = maps(theme); + TQValueList sizes; + TQStringList files = maps(theme); for (uint i=0; i= 0) f = f.mid(pos+1); @@ -94,14 +94,14 @@ void MapLoader::load(unsigned int width, const QString &theme, unsigned int heig break; } - QImage image; + TQImage image; if (size == 0) { - image = QImage(locate("data", "kworldclock/maps/depths/800.jpg")); + image = TQImage(locate("data", "kworldclock/maps/depths/800.jpg")); size = 800; } else - image = QImage(locate("data", QString("kworldclock/maps/%1/%2.jpg").arg(theme).arg(size))); + image = TQImage(locate("data", TQString("kworldclock/maps/%1/%2.jpg").arg(theme).arg(size))); if (height == 0) height = width/2; @@ -117,14 +117,14 @@ void MapLoader::load(unsigned int width, const QString &theme, unsigned int heig } -QBitmap MapLoader::darkMask(int width, int height) +TQBitmap MapLoader::darkMask(int width, int height) { time_t t; struct tm *tmp; double jt, sunra, sundec, sunrv, sunlong; short *wtab; - QBitmap illuMask(width, height); + TQBitmap illuMask(width, height); // calculate the position of the sun t = time(NULL); @@ -141,7 +141,7 @@ QBitmap MapLoader::darkMask(int width, int height) // draw illumination illuMask.fill(Qt::black); - QPainter p; + TQPainter p; p.begin(&illuMask); int start, stop; -- cgit v1.2.1