diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-22 21:31:21 +0000 |
commit | a1bd60b34891ccc77056c190d7871bc4b14fe654 (patch) | |
tree | 713f2f72c8f08a18df12f5bbeef7f9b61b19d4f1 /kworldwatch/flags.cpp | |
parent | 8d92c3c2a4131996726cc7b625d3cd3caec296de (diff) | |
download | tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.tar.gz tdetoys-a1bd60b34891ccc77056c190d7871bc4b14fe654.zip |
TQt4 port kdetoys
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kworldwatch/flags.cpp')
-rw-r--r-- | kworldwatch/flags.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kworldwatch/flags.cpp b/kworldwatch/flags.cpp index 273f8a0..7b9899c 100644 --- a/kworldwatch/flags.cpp +++ b/kworldwatch/flags.cpp @@ -39,7 +39,7 @@ FlagList::FlagList() _flags.setAutoDelete(true); _flagPixmap = TQPixmap(locate("data", "kworldclock/pics/flag.png")); - _flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-mask.xpm"), 0, TQPixmap::ThresholdDither); + _flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-tqmask.xpm"), 0, TQPixmap::ThresholdDither); _flagMask.setMask(_flagMask.createHeuristicMask()); } @@ -62,7 +62,7 @@ TQPoint FlagList::getPosition(double la, double lo, int w, int h, int offset) void FlagList::paint(TQPainter *p, int width, int height, int offset) { - p->setPen(Qt::black); + p->setPen(TQt::black); TQPtrListIterator<Flag> it(_flags); for ( ; it.current(); ++it) @@ -121,9 +121,9 @@ void FlagList::save(KConfig *config) int cnt=0; for ( ; it.current(); ++it) { - config->writeEntry(TQString("Flag_%1_Color").arg(cnt), it.current()->color()); - config->writeEntry(TQString("Flag_%1_Latitude").arg(cnt), it.current()->latitude()); - config->writeEntry(TQString("Flag_%1_Longitude").arg(cnt), it.current()->longitude()); + config->writeEntry(TQString("Flag_%1_Color").tqarg(cnt), it.current()->color()); + config->writeEntry(TQString("Flag_%1_Latitude").tqarg(cnt), it.current()->latitude()); + config->writeEntry(TQString("Flag_%1_Longitude").tqarg(cnt), it.current()->longitude()); cnt++; } } @@ -136,9 +136,9 @@ void FlagList::load(KConfig *config) for (int i=0; i<num; ++i) { - addFlag(new Flag(config->readDoubleNumEntry(TQString("Flag_%1_Longitude").arg(i)), - config->readDoubleNumEntry(TQString("Flag_%1_Latitude").arg(i)), - config->readColorEntry(TQString("Flag_%1_Color").arg(i)))); + addFlag(new Flag(config->readDoubleNumEntry(TQString("Flag_%1_Longitude").tqarg(i)), + config->readDoubleNumEntry(TQString("Flag_%1_Latitude").tqarg(i)), + config->readColorEntry(TQString("Flag_%1_Color").tqarg(i)))); } } |