summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/timeperiod.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/timeperiod.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/timeperiod.cpp')
-rw-r--r--kalarm/lib/timeperiod.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kalarm/lib/timeperiod.cpp b/kalarm/lib/timeperiod.cpp
index 22a7c3179..e372615a7 100644
--- a/kalarm/lib/timeperiod.cpp
+++ b/kalarm/lib/timeperiod.cpp
@@ -20,8 +20,8 @@
#include "kalarm.h"
-#include <qwidgetstack.h>
-#include <qwhatsthis.h>
+#include <tqwidgetstack.h>
+#include <tqwhatsthis.h>
#include <klocale.h>
#include <kdialog.h>
@@ -34,14 +34,14 @@
// Collect these widget labels together to ensure consistent wording and
// translations across different modules.
-QString TimePeriod::i18n_minutes() { return i18n("minutes"); }
-QString TimePeriod::i18n_Minutes() { return i18n("Minutes"); }
-QString TimePeriod::i18n_hours_mins() { return i18n("hours/minutes"); }
-QString TimePeriod::i18n_Hours_Mins() { return i18n("Hours/Minutes"); }
-QString TimePeriod::i18n_days() { return i18n("days"); }
-QString TimePeriod::i18n_Days() { return i18n("Days"); }
-QString TimePeriod::i18n_weeks() { return i18n("weeks"); }
-QString TimePeriod::i18n_Weeks() { return i18n("Weeks"); }
+TQString TimePeriod::i18n_minutes() { return i18n("minutes"); }
+TQString TimePeriod::i18n_Minutes() { return i18n("Minutes"); }
+TQString TimePeriod::i18n_hours_mins() { return i18n("hours/minutes"); }
+TQString TimePeriod::i18n_Hours_Mins() { return i18n("Hours/Minutes"); }
+TQString TimePeriod::i18n_days() { return i18n("days"); }
+TQString TimePeriod::i18n_Days() { return i18n("Days"); }
+TQString TimePeriod::i18n_weeks() { return i18n("weeks"); }
+TQString TimePeriod::i18n_Weeks() { return i18n("Weeks"); }
static const int maxMinutes = 1000*60-1; // absolute maximum value for hours:minutes = 999H59M
@@ -50,25 +50,25 @@ static const int maxMinutes = 1000*60-1; // absolute maximum value for hours:m
= Contains a time unit combo box, plus a time spinbox, to select a time period.
=============================================================================*/
-TimePeriod::TimePeriod(bool allowHourMinute, QWidget* parent, const char* name)
- : QHBox(parent, name),
+TimePeriod::TimePeriod(bool allowHourMinute, TQWidget* parent, const char* name)
+ : TQHBox(parent, name),
mMaxDays(9999),
mNoHourMinute(!allowHourMinute),
mReadOnly(false)
{
setSpacing(KDialog::spacingHint());
- mSpinStack = new QWidgetStack(this);
+ mSpinStack = new TQWidgetStack(this);
mSpinBox = new SpinBox(mSpinStack);
mSpinBox->setLineStep(1);
mSpinBox->setLineShiftStep(10);
mSpinBox->setRange(1, mMaxDays);
- connect(mSpinBox, SIGNAL(valueChanged(int)), SLOT(slotDaysChanged(int)));
+ connect(mSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotDaysChanged(int)));
mSpinStack->addWidget(mSpinBox, 0);
mTimeSpinBox = new TimeSpinBox(0, 99999, mSpinStack);
mTimeSpinBox->setRange(1, maxMinutes); // max 999H59M
- connect(mTimeSpinBox, SIGNAL(valueChanged(int)), SLOT(slotTimeChanged(int)));
+ connect(mTimeSpinBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotTimeChanged(int)));
mSpinStack->addWidget(mTimeSpinBox, 1);
mSpinStack->setFixedSize(mSpinBox->sizeHint().expandedTo(mTimeSpinBox->sizeHint()));
@@ -88,7 +88,7 @@ TimePeriod::TimePeriod(bool allowHourMinute, QWidget* parent, const char* name)
mUnitsCombo->insertItem(i18n_weeks());
mMaxUnitShown = WEEKS;
mUnitsCombo->setFixedSize(mUnitsCombo->sizeHint());
- connect(mUnitsCombo, SIGNAL(activated(int)), SLOT(slotUnitsSelected(int)));
+ connect(mUnitsCombo, TQT_SIGNAL(activated(int)), TQT_SLOT(slotUnitsSelected(int)));
setFocusProxy(mUnitsCombo);
setTabOrder(mUnitsCombo, mSpinStack);
@@ -376,9 +376,9 @@ void TimePeriod::showHourMin(bool hourMinute)
* If the hours:minutes text is omitted, both spinboxes are set to the same
* WhatsThis text.
*/
-void TimePeriod::setWhatsThis(const QString& units, const QString& dayWeek, const QString& hourMin)
+void TimePeriod::setWhatsThis(const TQString& units, const TQString& dayWeek, const TQString& hourMin)
{
- QWhatsThis::add(mUnitsCombo, units);
- QWhatsThis::add(mSpinBox, dayWeek);
- QWhatsThis::add(mTimeSpinBox, (hourMin.isNull() ? dayWeek : hourMin));
+ TQWhatsThis::add(mUnitsCombo, units);
+ TQWhatsThis::add(mSpinBox, dayWeek);
+ TQWhatsThis::add(mTimeSpinBox, (hourMin.isNull() ? dayWeek : hourMin));
}