summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/modcalcdaylength.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/modcalcdaylength.cpp')
-rw-r--r--kstars/kstars/tools/modcalcdaylength.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kstars/kstars/tools/modcalcdaylength.cpp b/kstars/kstars/tools/modcalcdaylength.cpp
index b4b1ebe9..fa922c1f 100644
--- a/kstars/kstars/tools/modcalcdaylength.cpp
+++ b/kstars/kstars/tools/modcalcdaylength.cpp
@@ -46,7 +46,7 @@ void modCalcDayLength::showCurrentDate (void)
void modCalcDayLength::initGeo(void)
{
- KStars *ks = (KStars*) tqparent()->tqparent()->tqparent(); // TQSplitter->AstroCalc->KStars
+ KStars *ks = (KStars*) parent()->parent()->parent(); // TQSplitter->AstroCalc->KStars
geoPlace = ks->geo();
longBox->show( geoPlace->lng() );
latBox->show( geoPlace->lat() );
@@ -96,7 +96,7 @@ void modCalcDayLength::slotComputePosTime()
getGeoLocation();
KSNumbers * num = new KSNumbers(jd0);
- KSSun *Sun = new KSSun(((KStars*) tqparent()->tqparent()->tqparent())->data());
+ KSSun *Sun = new KSSun(((KStars*) parent()->parent()->parent())->data());
Sun->findPosition(num);
TQTime setTQtime = Sun->riseSetTime( jd0 , geoPlace, false );