diff options
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); |