summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/simclock.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kstars/kstars/simclock.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/simclock.cpp')
-rw-r--r--kstars/kstars/simclock.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kstars/kstars/simclock.cpp b/kstars/kstars/simclock.cpp
index 0e7c467a..74af0865 100644
--- a/kstars/kstars/simclock.cpp
+++ b/kstars/kstars/simclock.cpp
@@ -25,9 +25,9 @@ int SimClock::idgen = 1;
int SimClock::TimerInterval = 100; //msec
-SimClock::SimClock(TQObject *parent, const KStarsDateTime &when) :
+SimClock::SimClock(TQObject *tqparent, const KStarsDateTime &when) :
DCOPObject("clock#" + TQCString().setNum(idgen++)),
- TQObject(parent),
+ TQObject(tqparent),
tmr(this)
{
if (! when.isValid() ) tmr.stop();
@@ -43,7 +43,7 @@ SimClock::SimClock(TQObject *parent, const KStarsDateTime &when) :
SimClock::SimClock (const SimClock &old) :
DCOPObject("clock#" + TQCString().setNum(idgen++)),
- TQObject(old.parent()),
+ TQObject(old.tqparent()),
SimClockInterface(),
tmr(this)
{
@@ -163,7 +163,7 @@ void SimClock::setUTC(const KStarsDateTime &newtime) {
}
kdDebug() << i18n( "Setting clock: UTC: %1 JD: %2" )
- .arg( UTC.toString() ).arg( KGlobal::locale()->formatNumber( UTC.djd() ) ) << endl;
+ .tqarg( UTC.toString() ).tqarg( KGlobal::locale()->formatNumber( UTC.djd() ) ) << endl;
emit timeChanged();
} else {
kdDebug() << i18n( "Cannot set SimClock: Invalid Date/Time." ) << endl;
@@ -172,7 +172,7 @@ void SimClock::setUTC(const KStarsDateTime &newtime) {
void SimClock::setScale(float s) {
if (Scale != s ) {
- kdDebug() << i18n( "New clock scale: %1 sec" ).arg( s ) << endl;
+ kdDebug() << i18n( "New clock scale: %1 sec" ).tqarg( s ) << endl;
Scale = s;
if (tmr.isActive()) {
julianmark = UTC.djd();