QGIS API Documentation 4.3.0-Master (149067ad0b9)
Loading...
Searching...
No Matches
QgsTimeZoneComboBox Class Reference

A combo box widget for selection of available time zones. More...

#include <qgsdatetimewithtimezonewidget.h>

Inheritance diagram for QgsTimeZoneComboBox:

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.

Detailed Description

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.

Since
QGIS 4.4

Definition at line 257 of file qgsdatetimewithtimezonewidget.h.

Member Typedef Documentation

◆ StandardItems

Standard time zone options.

Definition at line 273 of file qgsdatetimewithtimezonewidget.h.

Member Enumeration Documentation

◆ StandardItem

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.

Constructor & Destructor Documentation

◆ QgsTimeZoneComboBox()

QgsTimeZoneComboBox::QgsTimeZoneComboBox ( QWidget * parent = nullptr)
explicit

Constructor for QgsTimeZoneComboBox, with the specified parent widget.

Definition at line 443 of file qgsdatetimewithtimezonewidget.cpp.

Member Function Documentation

◆ dialogTitle()

QString QgsTimeZoneComboBox::dialogTitle ( ) const

Returns the title for the time zone selector dialog window.

See also
setDialogTitle()

Definition at line 486 of file qgsdatetimewithtimezonewidget.cpp.

◆ setDialogTitle()

void QgsTimeZoneComboBox::setDialogTitle ( const QString & title)

Sets the title for the time zone selector dialog window.

See also
dialogTitle()

Definition at line 481 of file qgsdatetimewithtimezonewidget.cpp.

◆ setTimeZone

void QgsTimeZoneComboBox::setTimeZone ( const QTimeZone & zone)
slot

Sets the current time zone to select in the widget.

See also
timeZone()

Definition at line 491 of file qgsdatetimewithtimezonewidget.cpp.

◆ timeZone()

QTimeZone QgsTimeZoneComboBox::timeZone ( ) const

Returns the selected time zone.

An invalid time zone will be returned if no item is selected.

See also
setTimeZone()

Definition at line 476 of file qgsdatetimewithtimezonewidget.cpp.

◆ timeZoneChanged

void QgsTimeZoneComboBox::timeZoneChanged ( const QTimeZone & zone)
signal

Emitted when the selected time zone is changed.

See also
setTimeZone()
timeZone()

The documentation for this class was generated from the following files: