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