summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcjd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/modcalcjd.cpp')
-rw-r--r--kstars/kstars/tools/modcalcjd.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kstars/kstars/tools/modcalcjd.cpp b/kstars/kstars/tools/modcalcjd.cpp
index 99271d34..4bacb940 100644
--- a/kstars/kstars/tools/modcalcjd.cpp
+++ b/kstars/kstars/tools/modcalcjd.cpp
@@ -22,7 +22,7 @@
#include "geolocation.h"
#include "libkdeedu/extdate/extdatetimeedit.h"
-#include <tqdatetimeedit.h> //need for QTimeEdit
+#include <tqdatetimeedit.h> //need for TQTimeEdit
#include <tqradiobutton.h>
#include <klineedit.h>
#include <klocale.h>
@@ -32,7 +32,7 @@
#define MJD0 2400000.5
-modCalcJD::modCalcJD(TQWidget *parentSplit, const char *name) : modCalcJdDlg(parentSplit,name) {
+modCalcJD::modCalcJD(TQWidget *tqparentSplit, const char *name) : modCalcJdDlg(tqparentSplit,name) {
showCurrentTime();
show();
@@ -95,15 +95,15 @@ void modCalcJD::slotClearTime (void)
{
JdName->setText ("");
MjdName->setText ("");
- datBox->setDate( ExtDate::currentDate() );
+ datBox->setDate( ExtDate::tqcurrentDate() );
timBox->setTime(TQTime(0,0,0));
}
void modCalcJD::showCurrentTime (void)
{
- KStars *ks = (KStars*) parent()->parent()->parent();
+ KStars *ks = (KStars*) tqparent()->tqparent()->tqparent();
- KStarsDateTime dt = ks->data()->geo()->LTtoUT( KStarsDateTime::currentDateTime() );
+ KStarsDateTime dt = ks->data()->geo()->LTtoUT( KStarsDateTime::tqcurrentDateTime() );
datBox->setDate( dt.date() );
timBox->setTime( dt.time() );
computeFromCalendar();