Class: QgsTimeZoneSortFilterModel¶
A sort filter model for display of available time zones.
Added in version 4.4.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
Constructor
Methods
Returns the current filter string, if set. |
|
Returns the proxy model index corresponding to a time zone. |
|
Sets a filter string, such that only time zones with names containing the specified string will be shown. |
- class qgis.gui.QgsTimeZoneSortFilterModel[source]¶
Bases:
QSortFilterProxyModel- __init__(source: QgsTimeZoneItemModel | None, parent: QObject | None = None)¶
Constructor for a QgsTimeZoneSortFilterModel with the specified
parentobject andsourcemodel.The source model must exist for the lifetime of the proxy.
- Parameters:
source (QgsTimeZoneItemModel|None)
parent (QObject|None = None)
- filterString(self) str[source]¶
Returns the current filter string, if set.
See also
- Return type:
str
- indexFromTimeZone(self, timeZone: QTimeZone) QModelIndex[source]¶
Returns the proxy model index corresponding to a time zone.
- Parameters:
timeZone (QTimeZone)
- Return type:
QModelIndex