OTimePicker Class Reference
A class to pick time. A widget to quickly pick a QTime. More...
#include <otimepicker.h>
Inheritance diagram for OTimePicker:


Public Slots | |
| void | setHour (int h) |
| Method to set the hour. | |
| void | setMinute (int m) |
| Method to set the minutes. | |
| void | setTime (const QTime &) |
| Method to set the time. | |
| void | setTime (int h, int m) |
| Method to set the time. | |
Signals | |
| void | timeChanged (const QTime &) |
| gets emitted when the time got changed by the user | |
Public Member Functions | |
| OTimePicker (QWidget *parent=0, const char *name=0, WFlags fl=0) | |
| Constructs the widget. | |
| QTime | time () const |
| This method return the current time. | |
Detailed Description
A class to pick time. A widget to quickly pick a QTime.It uses clickable labels internally to allow a quick selection of a time. A time can be selected by two clicks of a user
- Version:
- 1.0
- Author:
- Hakan Ardo, Stefan Eilers
Definition at line 23 of file otimepicker.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Constructs the widget.
Definition at line 17 of file otimepicker.cpp. References QBoxLayout::addWidget(), QValueList< OClickableLabel * >::append(), QObject::connect(), QWidget::QWidget(), QLabel::setAlignment(), QLabel::setText(), OClickableLabel::setToggleButton(), and QString::sprintf(). |
Member Function Documentation
|
|
Method to set the hour.
Definition at line 154 of file otimepicker.cpp. References QValueList< OClickableLabel * >::begin(), QValueList< OClickableLabel * >::end(), QTime::minute(), QTime::setHMS(), and QString::sprintf(). Referenced by setTime(). |
|
|
Method to set the minutes.
Definition at line 137 of file otimepicker.cpp. References QValueList< OClickableLabel * >::begin(), QValueList< OClickableLabel * >::end(), QTime::hour(), QTime::setHMS(), and QString::sprintf(). Referenced by setTime(). |
|
|
Method to set the time. No signal gets emitted during this method call Minutes must be within 5 minutes step starting at 0 ( 0,5,10,15,20... )
Definition at line 116 of file otimepicker.cpp. References QTime::hour(), and QTime::minute(). |
|
||||||||||||
|
Method to set the time. No signal gets emitted during this method call
Definition at line 125 of file otimepicker.cpp. References setHour(), and setMinute(). |
|
|
This method return the current time.
Definition at line 73 of file otimepicker.cpp. |
|
|
gets emitted when the time got changed by the user
|
The documentation for this class was generated from the following files:
