diff options
Diffstat (limited to 'kworldwatch')
-rw-r--r-- | kworldwatch/about.ui | 8 | ||||
-rw-r--r-- | kworldwatch/applet.cpp | 2 | ||||
-rw-r--r-- | kworldwatch/cities.cpp | 2 | ||||
-rw-r--r-- | kworldwatch/clock.ui | 8 | ||||
-rw-r--r-- | kworldwatch/flags.cpp | 12 | ||||
-rw-r--r-- | kworldwatch/flow.cpp | 24 | ||||
-rw-r--r-- | kworldwatch/flow.h | 8 | ||||
-rw-r--r-- | kworldwatch/main.cpp | 2 | ||||
-rw-r--r-- | kworldwatch/maploader.cpp | 4 | ||||
-rw-r--r-- | kworldwatch/mapwidget.cpp | 12 | ||||
-rw-r--r-- | kworldwatch/zoneclock.cpp | 16 |
11 files changed, 49 insertions, 49 deletions
diff --git a/kworldwatch/about.ui b/kworldwatch/about.ui index 334ea07..18ff889 100644 --- a/kworldwatch/about.ui +++ b/kworldwatch/about.ui @@ -103,7 +103,7 @@ <property name="sizeType"> <enum>Fixed</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>41</width> <height>31</height> @@ -119,7 +119,7 @@ Copyright: (c) 2000 Matthias Hoelzer-Kluepfel</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter|AlignLeft</set> </property> <property name="wordwrap" stdset="0"> @@ -151,7 +151,7 @@ Copyright: (c) 2000 Matthias Hoelzer-Kluepfel</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -179,7 +179,7 @@ Copyright: (c) 2000 Matthias Hoelzer-Kluepfel</string> <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> diff --git a/kworldwatch/applet.cpp b/kworldwatch/applet.cpp index 9b97134..5accd63 100644 --- a/kworldwatch/applet.cpp +++ b/kworldwatch/applet.cpp @@ -25,7 +25,7 @@ /* ** Bug reports and questions can be sent to kde-devel@kde.org */ -#include <layout.h> +#include <tqlayout.h> #include <kapplication.h> diff --git a/kworldwatch/cities.cpp b/kworldwatch/cities.cpp index 2c2a9f3..6626beb 100644 --- a/kworldwatch/cities.cpp +++ b/kworldwatch/cities.cpp @@ -26,7 +26,7 @@ ** Bug reports and questions can be sent to kde-devel@kde.org */ #include <tqfile.h> -#include <textstream.h> +#include <tqtextstream.h> #include <tqregexp.h> #include <tqpainter.h> diff --git a/kworldwatch/clock.ui b/kworldwatch/clock.ui index 3a31234..26fed16 100644 --- a/kworldwatch/clock.ui +++ b/kworldwatch/clock.ui @@ -71,7 +71,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -88,7 +88,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -177,7 +177,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> @@ -213,7 +213,7 @@ <property name="sizeType"> <enum>Expanding</enum> </property> - <property name="sizeHint"> + <property name="tqsizeHint"> <size> <width>20</width> <height>20</height> diff --git a/kworldwatch/flags.cpp b/kworldwatch/flags.cpp index 0b726a8..6f9837f 100644 --- a/kworldwatch/flags.cpp +++ b/kworldwatch/flags.cpp @@ -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)))); } } diff --git a/kworldwatch/flow.cpp b/kworldwatch/flow.cpp index 519ed85..056f5aa 100644 --- a/kworldwatch/flow.cpp +++ b/kworldwatch/flow.cpp @@ -1,7 +1,7 @@ /**************************************************************************** ** $Id$ ** -** Implementing your own layout: flow example +** Implementing your own tqlayout: flow example ** ** Copyright (C) 1996 by Trolltech AS. All rights reserved. ** @@ -76,9 +76,9 @@ bool SimpleFlow::hasHeightForWidth() const return TRUE; } -TQSize SimpleFlow::sizeHint() const +TQSize SimpleFlow::tqsizeHint() const { - return minimumSize(); + return tqminimumSize(); } TQSizePolicy::ExpandData SimpleFlow::expanding() const @@ -116,29 +116,29 @@ int SimpleFlow::doLayout( const TQRect &r, bool testonly ) TQLayoutItem *o; while ( (o=it.current()) != 0 ) { ++it; - int nextX = x + o->sizeHint().width() + spacing(); + int nextX = x + o->tqsizeHint().width() + spacing(); if ( nextX - spacing() > r.right() && h > 0 ) { x = r.x(); y = y + h + spacing(); - nextX = x + o->sizeHint().width() + spacing(); + nextX = x + o->tqsizeHint().width() + spacing(); h = 0; } if ( !testonly ) - o->setGeometry( TQRect( TQPoint( x, y ), o->sizeHint() ) ); + o->setGeometry( TQRect( TQPoint( x, y ), o->tqsizeHint() ) ); x = nextX; - h = TQMAX( h, o->sizeHint().height() ); + h = TQMAX( h, o->tqsizeHint().height() ); } return y + h - r.y(); } -TQSize SimpleFlow::minimumSize() const +TQSize SimpleFlow::tqminimumSize() const { TQSize s(0,0); TQPtrListIterator<TQLayoutItem> it(list); TQLayoutItem *o; while ( (o=it.current()) != 0 ) { ++it; - s = s.expandedTo( o->minimumSize() ); + s = s.expandedTo( o->tqminimumSize() ); } return s; } @@ -155,7 +155,7 @@ int SimpleFlow::count() const { \reimp */ TQLayoutItem* SimpleFlow::itemAt(int index) const { - return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).at(index)) : 0; + return index >= 0 && index < list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(list).tqat(index)) : 0; } /*! @@ -164,8 +164,8 @@ TQLayoutItem* SimpleFlow::itemAt(int index) const { TQLayoutItem* SimpleFlow::takeAt(int index) { if (index < 0 || index >= list.count()) return 0; - TQLayoutItem *item = list.at(index); - list.remove(list.at(index)); + TQLayoutItem *item = list.tqat(index); + list.remove(list.tqat(index)); delete item; invalidate(); diff --git a/kworldwatch/flow.h b/kworldwatch/flow.h index d8a9e63..e09a9a5 100644 --- a/kworldwatch/flow.h +++ b/kworldwatch/flow.h @@ -1,7 +1,7 @@ /**************************************************************************** ** $Id$ ** -** Definition of simple flow layout for custom layout example +** Definition of simple flow tqlayout for custom tqlayout example ** ** Created : 979899 ** @@ -15,7 +15,7 @@ #ifndef FLOW_H #define FLOW_H -#include <layout.h> +#include <tqlayout.h> #include <tqptrlist.h> class SimpleFlow : public TQLayout @@ -37,8 +37,8 @@ public: void addItem( TQLayoutItem *item); bool hasHeightForWidth() const; int heightForWidth( int ) const; - TQSize sizeHint() const; - TQSize minimumSize() const; + TQSize tqsizeHint() const; + TQSize tqminimumSize() const; TQLayoutIterator iterator(); TQSizePolicy::ExpandData expanding() const; diff --git a/kworldwatch/main.cpp b/kworldwatch/main.cpp index 58ab232..346a97b 100644 --- a/kworldwatch/main.cpp +++ b/kworldwatch/main.cpp @@ -29,7 +29,7 @@ #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqpainter.h> #include <tqpixmap.h> #include <tqwidget.h> diff --git a/kworldwatch/maploader.cpp b/kworldwatch/maploader.cpp index bb62e4f..62fc49a 100644 --- a/kworldwatch/maploader.cpp +++ b/kworldwatch/maploader.cpp @@ -63,7 +63,7 @@ TQPtrList<MapTheme> MapLoader::themes() TQStringList MapLoader::maps(const TQString &theme) { - return KGlobal::dirs()->findAllResources("data", TQString("kworldclock/maps/%1/*.jpg").arg(theme)); + return KGlobal::dirs()->findAllResources("data", TQString("kworldclock/maps/%1/*.jpg").tqarg(theme)); } @@ -101,7 +101,7 @@ void MapLoader::load(unsigned int width, const TQString &theme, unsigned int hei size = 800; } else - image = TQImage(locate("data", TQString("kworldclock/maps/%1/%2.jpg").arg(theme).arg(size))); + image = TQImage(locate("data", TQString("kworldclock/maps/%1/%2.jpg").tqarg(theme).tqarg(size))); if (height == 0) height = width/2; diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp index 93bca75..680d8ef 100644 --- a/kworldwatch/mapwidget.cpp +++ b/kworldwatch/mapwidget.cpp @@ -143,7 +143,7 @@ MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *na _cityIndicator->setIndent(0); _cityIndicator->setAutoMask(false); _cityIndicator->setLineWidth(1); - _cityIndicator->setAlignment(TQLabel::AlignAuto | TQLabel::AlignTop); + _cityIndicator->tqsetAlignment(TQLabel::AlignAuto | TQLabel::AlignTop); _cityIndicator->setAutoResize(true); _cityIndicator->setFrameStyle(TQFrame::Box | TQFrame::Plain); _cityIndicator->setPalette(TQToolTip::palette()); @@ -366,7 +366,7 @@ TQString MapWidget::cityTime(const TQString &city) time_t t = time(NULL); TQDateTime dt; dt.setTime_t(t); - result.append(TQString("%1, %2").arg(KGlobal::locale()->formatTime(dt.time(), true)).arg(KGlobal::locale()->formatDate(dt.date(), true))); + result.append(TQString("%1, %2").tqarg(KGlobal::locale()->formatTime(dt.time(), true)).tqarg(KGlobal::locale()->formatDate(dt.date(), true))); if (initial_TZ != 0) setenv("TZ", initial_TZ, 1); @@ -563,13 +563,13 @@ TQPixmap MapWidget::calculatePixmap() if (gmt_position >= greenwich) { - p.drawPixmap(gmt_position-greenwich, 0, map, 0, 0, map.width()-gmt_position+greenwich); - p.drawPixmap(0,0, map, map.width()-gmt_position+greenwich, 0, gmt_position-greenwich); + p.tqdrawPixmap(gmt_position-greenwich, 0, map, 0, 0, map.width()-gmt_position+greenwich); + p.tqdrawPixmap(0,0, map, map.width()-gmt_position+greenwich, 0, gmt_position-greenwich); } else { - p.drawPixmap(0,0, map, greenwich-gmt_position, 0, map.width()+gmt_position-greenwich); - p.drawPixmap(map.width()+gmt_position-greenwich, 0, map, 0, 0, greenwich-gmt_position); + p.tqdrawPixmap(0,0, map, greenwich-gmt_position, 0, map.width()+gmt_position-greenwich); + p.tqdrawPixmap(map.width()+gmt_position-greenwich, 0, map, 0, 0, greenwich-gmt_position); } return pm; diff --git a/kworldwatch/zoneclock.cpp b/kworldwatch/zoneclock.cpp index 7325597..1c81814 100644 --- a/kworldwatch/zoneclock.cpp +++ b/kworldwatch/zoneclock.cpp @@ -32,7 +32,7 @@ #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqdatetime.h> #include <tqtimer.h> #include <tqcombobox.h> @@ -122,7 +122,7 @@ void ZoneClock::editClock() _name = _dlg->ClockCaption->text().append(":"); _nameLabel->setText(_dlg->ClockCaption->text().append(":")); updateTime(); - layout()->invalidate(); + tqlayout()->tqinvalidate(); emit changed(); } @@ -152,7 +152,7 @@ void ZoneClock::updateTime() time_t t = time(NULL); TQDateTime dt; dt.setTime_t(t); - _timeLabel->setText(TQString("%1, %2").arg(KGlobal::locale()->formatTime(dt.time(), true)).arg(KGlobal::locale()->formatDate(dt.date(), true))); + _timeLabel->setText(TQString("%1, %2").tqarg(KGlobal::locale()->formatTime(dt.time(), true)).tqarg(KGlobal::locale()->formatDate(dt.date(), true))); if (initial_TZ != 0) setenv("TZ", initial_TZ, 1); @@ -218,8 +218,8 @@ void ZoneClockPanel::realign() int w = 0; TQPtrListIterator<ZoneClock> it(_clocks); for ( ; it.current(); ++it) - if (it.current()->sizeHint().width() > w) - w = it.current()->sizeHint().width(); + if (it.current()->tqsizeHint().width() > w) + w = it.current()->tqsizeHint().width(); it.toFirst(); for ( ; it.current(); ++it) it.current()->setFixedWidth(w); @@ -266,8 +266,8 @@ void ZoneClockPanel::save(KConfig *config) { TQString n = it.current()->name(); n = n.left(n.length()-1); - config->writeEntry(TQString("Clock_%1_Name").arg(cnt), n); - config->writeEntry(TQString("Clock_%1_Zone").arg(cnt), it.current()->zone()); + config->writeEntry(TQString("Clock_%1_Name").tqarg(cnt), n); + config->writeEntry(TQString("Clock_%1_Zone").tqarg(cnt), it.current()->zone()); cnt++; } } @@ -281,7 +281,7 @@ void ZoneClockPanel::load(KConfig *config) for (int i=0; i<num; ++i) { - addClock(config->readEntry(TQString("Clock_%1_Zone").arg(i)), config->readEntry(TQString("Clock_%1_Name").arg(i))); + addClock(config->readEntry(TQString("Clock_%1_Zone").tqarg(i)), config->readEntry(TQString("Clock_%1_Name").tqarg(i))); } } |