diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/lib/timespinbox.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-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/timespinbox.h')
-rw-r--r-- | kalarm/lib/timespinbox.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kalarm/lib/timespinbox.h b/kalarm/lib/timespinbox.h index 275fdf309..909541ad9 100644 --- a/kalarm/lib/timespinbox.h +++ b/kalarm/lib/timespinbox.h @@ -21,7 +21,7 @@ #ifndef TIMESPINBOX_H #define TIMESPINBOX_H -#include <qdatetime.h> +#include <tqdatetime.h> #include "spinbox2.h" @@ -52,14 +52,14 @@ class TimeSpinBox : public SpinBox2 * @param parent The parent object of this widget. * @param name The name of this widget. */ - explicit TimeSpinBox(bool use24hour, QWidget* parent = 0, const char* name = 0); + explicit TimeSpinBox(bool use24hour, TQWidget* parent = 0, const char* name = 0); /** Constructor for a non-wrapping time spin box which can be used to enter a length of time. * @param minMinute The minimum value which the spin box can hold, in minutes. * @param maxMinute The maximum value which the spin box can hold, in minutes. * @param parent The parent object of this widget. * @param name The name of this widget. */ - TimeSpinBox(int minMinute, int maxMinute, QWidget* parent = 0, const char* name = 0); + TimeSpinBox(int minMinute, int maxMinute, TQWidget* parent = 0, const char* name = 0); /** Returns true if the spin box holds a valid value. * An invalid value is displayed as asterisks. */ @@ -72,7 +72,7 @@ class TimeSpinBox : public SpinBox2 /** Returns the current value held in the spin box. * If an invalid value is displayed, returns a value lower than the minimum value. */ - QTime time() const; + TQTime time() const; /** Sets the maximum value which can be held in the spin box. * @param minutes The maximum value expressed in minutes. */ @@ -82,16 +82,16 @@ class TimeSpinBox : public SpinBox2 */ virtual void setMaxValue(int minutes) { SpinBox2::setMaxValue(minutes); } /** Sets the maximum value which can be held in the spin box. */ - void setMaxValue(const QTime& t) { SpinBox2::setMaxValue(t.hour()*60 + t.minute()); } + void setMaxValue(const TQTime& t) { SpinBox2::setMaxValue(t.hour()*60 + t.minute()); } /** Returns the maximum value which can be held in the spin box. */ - QTime maxTime() const { int mv = maxValue(); return QTime(mv/60, mv%60); } + TQTime maxTime() const { int mv = maxValue(); return TQTime(mv/60, mv%60); } /** Returns a text describing use of the shift key as an accelerator for * the spin buttons, designed for incorporation into WhatsThis texts. */ - static QString shiftWhatsThis(); + static TQString shiftWhatsThis(); - virtual QSize sizeHint() const; - virtual QSize minimumSizeHint() const; + virtual TQSize sizeHint() const; + virtual TQSize minimumSizeHint() const; public slots: /** Sets the value of the spin box. @@ -99,7 +99,7 @@ class TimeSpinBox : public SpinBox2 */ virtual void setValue(int minutes); /** Sets the value of the spin box. */ - void setValue(const QTime& t) { setValue(t.hour()*60 + t.minute()); } + void setValue(const TQTime& t) { setValue(t.hour()*60 + t.minute()); } /** Increments the spin box value. * If the value was previously invalid, the spin box is set to the minimum value. */ @@ -110,7 +110,7 @@ class TimeSpinBox : public SpinBox2 virtual void stepDown(); protected: - virtual QString mapValueToText(int v); + virtual TQString mapValueToText(int v); virtual int mapTextToValue(bool* ok); private slots: void slotValueChanged(int value); |