summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/timespinbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /kalarm/lib/timespinbox.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/timespinbox.cpp')
-rw-r--r--kalarm/lib/timespinbox.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/lib/timespinbox.cpp b/kalarm/lib/timespinbox.cpp
index ea10cb1a..f8700a50 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);