summaryrefslogtreecommitdiffstats
path: root/kalarm/lib/timespinbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-16 20:17:18 +0000
commitf4fae92b6768541e2952173c3d4b09040f95bf7e (patch)
treed8c5d93232235cd635f3310b4d95490df181ba2d /kalarm/lib/timespinbox.cpp
parent125c0a08265b75a133644d3b55f47e37c919f45d (diff)
downloadtdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.tar.gz
tdepim-f4fae92b6768541e2952173c3d4b09040f95bf7e.zip
Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/lib/timespinbox.cpp')
-rw-r--r--kalarm/lib/timespinbox.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kalarm/lib/timespinbox.cpp b/kalarm/lib/timespinbox.cpp
index 20073d878..ea10cb1aa 100644
--- a/kalarm/lib/timespinbox.cpp
+++ b/kalarm/lib/timespinbox.cpp
@@ -69,7 +69,7 @@ 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);
- setAlignment(Qt::AlignHCenter);
+ tqsetAlignment(Qt::AlignHCenter);
connect(this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)));
}
@@ -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);
- setAlignment(TQApplication::reverseLayout() ? Qt::AlignLeft : Qt::AlignRight);
+ tqsetAlignment(TQApplication::reverseLayout() ? Qt::AlignLeft : Qt::AlignRight);
}
TQString TimeSpinBox::shiftWhatsThis()
@@ -211,7 +211,7 @@ void TimeSpinBox::setValid(bool valid)
{
mInvalid = true;
SpinBox2::setMinValue(mMinimumValue - 1);
- setSpecialValueText(TQString::fromLatin1("**:**"));
+ setSpecialValueText(TQString::tqfromLatin1("**:**"));
SpinBox2::setValue(mMinimumValue - 1);
}
}
@@ -280,16 +280,16 @@ void TimeSpinBox::slotValueChanged(int value)
mPm = mValidator->mPm = (value >= 720);
}
-TQSize TimeSpinBox::sizeHint() const
+TQSize TimeSpinBox::tqsizeHint() const
{
- TQSize sz = SpinBox2::sizeHint();
+ TQSize sz = SpinBox2::tqsizeHint();
TQFontMetrics fm(font());
return TQSize(sz.width() + fm.width(":"), sz.height());
}
-TQSize TimeSpinBox::minimumSizeHint() const
+TQSize TimeSpinBox::tqminimumSizeHint() const
{
- TQSize sz = SpinBox2::minimumSizeHint();
+ TQSize sz = SpinBox2::tqminimumSizeHint();
TQFontMetrics fm(font());
return TQSize(sz.width() + fm.width(":"), sz.height());
}