|
QGIS API Documentation 4.3.0-Master (149067ad0b9)
|
A combo box widget for selection of available time zones. More...
#include <qgsdatetimewithtimezonewidget.h>

Public Types | |
| enum class | StandardItem { Invalid = 1 << 0 , Current = 1 << 1 , System = 1 << 2 } |
| Standard time zone options. More... | |
| typedef QFlags< StandardItem > | StandardItems |
| Standard time zone options. | |
Public Slots | |
| void | setTimeZone (const QTimeZone &zone) |
| Sets the current time zone to select in the widget. | |
Signals | |
| void | timeZoneChanged (const QTimeZone &zone) |
| Emitted when the selected time zone is changed. | |
Public Member Functions | |
| QgsTimeZoneComboBox (QWidget *parent=nullptr) | |
| Constructor for QgsTimeZoneComboBox, with the specified parent widget. | |
| QString | dialogTitle () const |
| Returns the title for the time zone selector dialog window. | |
| void | setDialogTitle (const QString &title) |
| Sets the title for the time zone selector dialog window. | |
| QTimeZone | timeZone () const |
| Returns the selected time zone. | |
A combo box widget for selection of available time zones.
The widget consists of a list of available time zones, along with a filter widget for searching through the available zones.
Definition at line 257 of file qgsdatetimewithtimezonewidget.h.
| typedef QFlags< StandardItem > QgsTimeZoneComboBox::StandardItems |
Standard time zone options.
Definition at line 273 of file qgsdatetimewithtimezonewidget.h.
|
strong |
Standard time zone options.
| Enumerator | |
|---|---|
| Invalid | Invalid/not set option. |
| Current | Current time zone value. |
| System | System time zone. |
Definition at line 263 of file qgsdatetimewithtimezonewidget.h.
|
explicit |
Constructor for QgsTimeZoneComboBox, with the specified parent widget.
Definition at line 443 of file qgsdatetimewithtimezonewidget.cpp.
| QString QgsTimeZoneComboBox::dialogTitle | ( | ) | const |
Returns the title for the time zone selector dialog window.
Definition at line 486 of file qgsdatetimewithtimezonewidget.cpp.
| void QgsTimeZoneComboBox::setDialogTitle | ( | const QString & | title | ) |
Sets the title for the time zone selector dialog window.
Definition at line 481 of file qgsdatetimewithtimezonewidget.cpp.
|
slot |
Sets the current time zone to select in the widget.
Definition at line 491 of file qgsdatetimewithtimezonewidget.cpp.
| QTimeZone QgsTimeZoneComboBox::timeZone | ( | ) | const |
Returns the selected time zone.
An invalid time zone will be returned if no item is selected.
Definition at line 476 of file qgsdatetimewithtimezonewidget.cpp.
|
signal |
Emitted when the selected time zone is changed.