24#include <tqdatetime.h>
56 explicit TimeSpinBox(
bool use24hour, TQWidget* parent = 0,
const char* name = 0);
63 TimeSpinBox(
int minMinute,
int maxMinute, TQWidget* parent = 0,
const char* name = 0);
94 virtual TQSize sizeHint()
const;
95 virtual TQSize minimumSizeHint()
const;
114 virtual TQString mapValueToText(
int v);
115 virtual int mapTextToValue(
bool* ok);
117 void slotValueChanged(
int value);
120 TimeValidator* mValidator;
125 bool mEnteredSetValue;
Spin box with a pair of spin buttons on either side.
int maxValue() const
Returns the maximum value of the spin box.
virtual void setMaxValue(int val)
Sets the maximum value of the spin box.
int value() const
Returns the current value of the spin box.
Hours/minutes time entry widget.
virtual void stepUp()
Increments the spin box value.
static TQString shiftWhatsThis()
Returns a text describing use of the shift key as an accelerator for the spin buttons,...
virtual void setMinValue(int minutes)
Sets the maximum value which can be held in the spin box.
virtual void setValue(int minutes)
Sets the value of the spin box.
void setValue(const TQTime &t)
Sets the value of the spin box.
TQTime time() const
Returns the current value held in the spin box.
bool isValid() const
Returns true if the spin box holds a valid value.
void setMaxValue(const TQTime &t)
Sets the maximum value which can be held in the spin box.
TQTime maxTime() const
Returns the maximum value which can be held in the spin box.
virtual void stepDown()
Decrements the spin box value.
void setValid(bool)
Sets the spin box as holding a valid or invalid value.
virtual void setMaxValue(int minutes)
Sets the maximum value which can be held in the spin box.