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);
virtual void setValue(int minutes)
Sets the value of the widget.
TimeEdit(TQWidget *parent=0, const char *name=0)
Constructor.
void setValid(bool valid)
Sets whether the edit value is valid.
A TQComboBox with read-only option.
int maxValue() const
Returns the maximum value of the widget in minutes.
int value() const
Returns the entered time as a value in minutes.
void setMaxValue(const TQTime &time)
Sets the maximum value of the widget.
void setMaxValue(int minutes)
Sets the maximum value of the widget.
TQTime time() const
Returns the entered time as a TQTime value.
TQTime maxTime() const
Returns the maximum value of the widget as a TQTime value.
void setWrapping(bool on)
Sets whether it is possible to step the value from the highest value to the lowest value and vice ver...
Hours/minutes time entry widget.
bool isValid() const
Returns true if the widget contains a valid value.
virtual void setReadOnly(bool readOnly)
Sets whether the widget is read-only for the user.
int minValue() const
Returns the minimum value of the widget in minutes.
void setMinValue(int minutes)
Sets the minimum value of the widget.
bool wrapping() const
Returns true if it is possible to step the value from the highest value to the lowest value and vice ...
Widget to enter a time of day.
bool isReadOnly() const
Returns true if the widget is read only.
void setValue(const TQTime &t)
Sets the value of the widget.
void valueChanged(int minutes)
This signal is emitted every time the value of the widget changes (for whatever reason).