summaryrefslogtreecommitdiffstats
path: root/kstars/kstars/tools/wutdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kstars/kstars/tools/wutdialog.cpp')
-rw-r--r--kstars/kstars/tools/wutdialog.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kstars/kstars/tools/wutdialog.cpp b/kstars/kstars/tools/wutdialog.cpp
index 3095e306..73d3d8a1 100644
--- a/kstars/kstars/tools/wutdialog.cpp
+++ b/kstars/kstars/tools/wutdialog.cpp
@@ -38,7 +38,7 @@
#include <tqgroupbox.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqframe.h>
#include <tqtabbar.h>
#include <tqtimer.h>
@@ -81,8 +81,8 @@ WUTDialog::WUTDialog(KStars *ks) :
TQString sGeo = geo->translatedName();
if ( ! geo->translatedProvince().isEmpty() ) sGeo += ", " + geo->translatedProvince();
sGeo += ", " + geo->translatedCountry();
- WUT->LocationLabel->setText( i18n( "at %1" ).arg( sGeo ) );
- WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString( Qt::LocalDate ) ) );
+ WUT->LocationLabel->setText( i18n( "at %1" ).tqarg( sGeo ) );
+ WUT->DateLabel->setText( i18n( "The night of %1" ).tqarg( Evening.date().toString( Qt::LocalDate ) ) );
initCategories();
@@ -164,9 +164,9 @@ void WUTDialog::init() {
sDuration = TQString().sprintf( "%02d:%02d", hDur, mDur );
}
- WUT->SunSetLabel->setText( i18n( "Sunset: %1" ).arg(sSet) );
- WUT->SunRiseLabel->setText( i18n( "Sunrise: %1" ).arg(sRise) );
- WUT->NightDurationLabel->setText( i18n( "Night duration: %1 hours" ).arg( sDuration ) );
+ WUT->SunSetLabel->setText( i18n( "Sunset: %1" ).tqarg(sSet) );
+ WUT->SunRiseLabel->setText( i18n( "Sunrise: %1" ).tqarg(sRise) );
+ WUT->NightDurationLabel->setText( i18n( "Night duration: %1 hours" ).tqarg( sDuration ) );
// moon almanac information
KSMoon *oMoon = (KSMoon*) kstars->data()->Moon;
@@ -189,10 +189,10 @@ void WUTDialog::init() {
sSet = moonSet.addSecs(30).toString("hh:mm");
}
- WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1" ).arg( sRise ) );
- WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1" ).arg( sSet ) );
+ WUT->MoonRiseLabel->setText( i18n( "Moon rises at: %1" ).tqarg( sRise ) );
+ WUT->MoonSetLabel->setText( i18n( "Moon sets at: %1" ).tqarg( sSet ) );
oMoon->findPhase( oSun );
- WUT->MoonIllumLabel->setText( oMoon->phaseName() + TQString( " (%1%)" ).arg(
+ WUT->MoonIllumLabel->setText( oMoon->phaseName() + TQString( " (%1%)" ).tqarg(
int(100.0*oMoon->illum() ) ) );
//Restore Sun's and Moon's coordinates, and recompute Moon's original Phase
@@ -352,9 +352,9 @@ void WUTDialog::slotDisplayObject(TQListBoxItem *item) {
WUT->DetailButton->setEnabled( true );
}
- WUT->ObjectRiseLabel->setText( i18n( "Rises at: %1" ).arg( sRise ) );
- WUT->ObjectTransitLabel->setText( i18n( "Transits at: %1" ).arg( sTransit ) );
- WUT->ObjectSetLabel->setText( i18n( "Sets at: %1" ).arg( sSet ) );
+ WUT->ObjectRiseLabel->setText( i18n( "Rises at: %1" ).tqarg( sRise ) );
+ WUT->ObjectTransitLabel->setText( i18n( "Transits at: %1" ).tqarg( sTransit ) );
+ WUT->ObjectSetLabel->setText( i18n( "Sets at: %1" ).tqarg( sSet ) );
}
void WUTDialog::slotCenter() {
@@ -403,7 +403,7 @@ void WUTDialog::slotChangeDate() {
Evening = T0.addSecs( -6*3600 );
EveningUT = geo->LTtoUT( Evening );
- WUT->DateLabel->setText( i18n( "The night of %1" ).arg( Evening.date().toString() ) );
+ WUT->DateLabel->setText( i18n( "The night of %1" ).tqarg( Evening.date().toString() ) );
int i = WUT->CategoryListBox->currentItem();
init();
@@ -421,7 +421,7 @@ void WUTDialog::slotChangeLocation() {
TomorrowUT = geo->LTtoUT( Tomorrow );
EveningUT = geo->LTtoUT( Evening );
- WUT->LocationLabel->setText( i18n( "at %1" ).arg( geo->fullName() ) );
+ WUT->LocationLabel->setText( i18n( "at %1" ).tqarg( geo->fullName() ) );
int i = WUT->CategoryListBox->currentItem();
init();