24 #include <tqdatetime.h>
59 explicit TimeEdit(TQWidget* parent = 0,
const char* name = 0);
79 TQTime
time()
const {
int m =
value();
return TQTime(m/60, m%60); }
111 void slotValueChanged(
int);
112 void slotAmPmChanged(
int item);
114 void setAmPmCombo(
int am,
int pm);
TimeEdit(TQWidget *parent=0, const char *name=0)
Constructor.
int minValue() const
Returns the minimum value of the widget in minutes.
int maxValue() const
Returns the maximum value of the widget in minutes.
Hours/minutes time entry widget.
virtual void setReadOnly(bool readOnly)
Sets whether the widget is read-only for the user.
bool isValid() const
Returns true if the widget contains a valid value.
bool isReadOnly() const
Returns true if the widget is read only.
Widget to enter a time of day.
void setMaxValue(int minutes)
Sets the maximum value of the widget.
TQTime time() const
Returns the entered time as a TQTime value.
void setMinValue(int minutes)
Sets the minimum value of the widget.
void setWrapping(bool on)
Sets whether it is possible to step the value from the highest value to the lowest value and vice ver...
void valueChanged(int minutes)
This signal is emitted every time the value of the widget changes (for whatever reason).
void setMaxValue(const TQTime &time)
Sets the maximum value of the widget.
virtual void setValue(int minutes)
Sets the value of the widget.
void setValid(bool valid)
Sets whether the edit value is valid.
A TQComboBox with read-only option.
int value() const
Returns the entered time as a value in minutes.
void setValue(const TQTime &t)
Sets the value of the widget.
TQTime maxTime() const
Returns the maximum value of the widget as a TQTime value.
bool wrapping() const
Returns true if it is possible to step the value from the highest value to the lowest value and vice ...