diff options
Diffstat (limited to 'kalarm/lib/timespinbox.cpp')
-rw-r--r-- | kalarm/lib/timespinbox.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/lib/timespinbox.cpp b/kalarm/lib/timespinbox.cpp index ea10cb1aa..f8700a505 100644 --- a/kalarm/lib/timespinbox.cpp +++ b/kalarm/lib/timespinbox.cpp @@ -27,11 +27,11 @@ #include "timespinbox.moc" -class TimeSpinBox::TimeValidator : public QValidator +class TimeSpinBox::TimeValidator : public TQValidator { public: - TimeValidator(int minMin, int maxMin, TQWidget* parent, const char* name = 0) - : TQValidator(parent, name), + TimeValidator(int minMin, int maxMin, TQWidget* tqparent, const char* name = 0) + : TQValidator(tqparent, name), minMinute(minMin), maxMinute(maxMin), m12Hour(false), mPm(false) { } virtual State validate(TQString&, int&) const; int minMinute, maxMinute; @@ -54,8 +54,8 @@ class TimeSpinBox::TimeValidator : public QValidator /****************************************************************************** * Construct a wrapping 00:00 - 23:59, or 12:00 - 11:59 time spin box. */ -TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* parent, const char* name) - : SpinBox2(0, 1439, 1, 60, parent, name), +TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* tqparent, const char* name) + : SpinBox2(0, 1439, 1, 60, tqparent, name), mMinimumValue(0), m12Hour(!use24hour), mPm(false), @@ -69,15 +69,15 @@ TimeSpinBox::TimeSpinBox(bool use24hour, TQWidget* parent, const char* name) setReverseWithLayout(false); // keep buttons the same way round even if right-to-left language setShiftSteps(5, 360); // shift-left button increments 5 min / 6 hours setSelectOnStep(false); - tqsetAlignment(Qt::AlignHCenter); + tqsetAlignment(TQt::AlignHCenter); connect(this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int))); } /****************************************************************************** * Construct a non-wrapping time spin box. */ -TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent, const char* name) - : SpinBox2(minMinute, maxMinute, 1, 60, parent, name), +TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* tqparent, const char* name) + : SpinBox2(minMinute, maxMinute, 1, 60, tqparent, name), mMinimumValue(minMinute), m12Hour(false), mInvalid(false), @@ -88,7 +88,7 @@ TimeSpinBox::TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent, const c setReverseWithLayout(false); // keep buttons the same way round even if right-to-left language setShiftSteps(5, 300); // shift-left button increments 5 min / 5 hours setSelectOnStep(false); - tqsetAlignment(TQApplication::reverseLayout() ? Qt::AlignLeft : Qt::AlignRight); + tqsetAlignment(TQApplication::reverseLayout() ? TQt::AlignLeft : TQt::AlignRight); } TQString TimeSpinBox::shiftWhatsThis() @@ -124,7 +124,7 @@ TQString TimeSpinBox::mapValueToText(int v) int TimeSpinBox::mapTextToValue(bool* ok) { TQString text = cleanText(); - int colon = text.find(':'); + int colon = text.tqfind(':'); if (colon >= 0) { // [h]:m format for any time value @@ -309,7 +309,7 @@ TQValidator::State TimeSpinBox::TimeValidator::validate(TQString& text, int& /*c bool ok; int hr = 0; int mn = 0; - int colon = cleanText.find(':'); + int colon = cleanText.tqfind(':'); if (colon >= 0) { TQString minute = cleanText.mid(colon + 1); |