TimeEdit Class Reference
Widget to enter a time of day. More...
#include <timeedit.h>
Inherits QHBox.
Public Slots
Signals
- void valueChanged (int minutes)
Public Member Functions
- TimeEdit (QWidget *parent=0, const char *name=0)
- bool isReadOnly () const
- void setReadOnly (bool readOnly)
- bool isValid () const
- void setValid (bool valid)
- int value () const
- QTime time () const
- bool wrapping () const
- void setWrapping (bool on)
- int minValue () const
- int maxValue () const
- QTime maxTime () const
- void setMinValue (int minutes)
- void setMaxValue (int minutes)
- void setMaxValue (const QTime &time)
Detailed Description
Widget to enter a time of day.The TimeEdit class provides a widget to enter a time of day in hours and minutes, using a 12- or 24-hour clock according to the user's locale settings.
It displays a TimeSpinBox widget to enter hours and minutes. If a 12-hour clock is being used, it also displays a combo box to select am or pm.
TimeSpinBox displays a spin box with two pairs of spin buttons, one for hours and one for minutes. It provides accelerated stepping using the spin buttons, when the shift key is held down (inherited from SpinBox2). The default shift steps are 5 minutes and 6 hours.
The widget may be set as read-only. This has the same effect as disabling it, except that its appearance is unchanged.
- Author:
- David Jarvie <software@astrojar.org.uk>
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Returns true if the widget is read only.
|
|
Sets whether the widget is read-only for the user. If read-only, the time cannot be edited and the spin buttons and am/pm combo box are inactive.
|
|
Returns true if the widget contains a valid value.
|
|
Sets whether the edit value is valid. If newly invalid, the value is displayed as asterisks. If newly valid, the value is set to the minimum value.
|
|
Returns the entered time as a value in minutes.
|
|
Returns the entered time as a QTime value.
|
|
Returns true if it is possible to step the value from the highest value to the lowest value and vice versa.
|
|
Sets whether it is possible to step the value from the highest value to the lowest value and vice versa.
|
|
Returns the minimum value of the widget in minutes.
|
|
Returns the maximum value of the widget in minutes.
|
|
Returns the maximum value of the widget as a QTime value.
|
|
Sets the minimum value of the widget.
|
|
Sets the maximum value of the widget.
|
|
Sets the maximum value of the widget.
|
|
Sets the value of the widget.
|
|
Sets the value of the widget.
|
|
This signal is emitted every time the value of the widget changes (for whatever reason).
|
The documentation for this class was generated from the following files:
- timeedit.h
- timeedit.cpp