diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 10:00:14 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 10:00:14 -0600 |
commit | 4d75f93557ba631d97a56e288a34ca27f4507653 (patch) | |
tree | 9c6aa673bd4900debf335044852a99b4d9f67133 /kworldwatch/zoneclock.cpp | |
parent | 6cdf35ab11c322f33feca5baf090ef56068b6049 (diff) | |
download | tdetoys-4d75f93557ba631d97a56e288a34ca27f4507653.tar.gz tdetoys-4d75f93557ba631d97a56e288a34ca27f4507653.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 6cdf35ab11c322f33feca5baf090ef56068b6049.
Diffstat (limited to 'kworldwatch/zoneclock.cpp')
-rw-r--r-- | kworldwatch/zoneclock.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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))); } } |