|
QGIS API Documentation 4.3.0-Master (149067ad0b9)
|
A sort filter model for display of available time zones. More...
#include <qgsdatetimewithtimezonewidget.h>

Public Slots | |
| void | setFilterString (const QString &filter) |
| Sets a filter string, such that only time zones with names containing the specified string will be shown. | |
Public Member Functions | |
| QgsTimeZoneSortFilterModel (QgsTimeZoneItemModel *source, QObject *parent=nullptr) | |
| Constructor for a QgsTimeZoneSortFilterModel with the specified parent object and source model. | |
| QString | filterString () const |
| Returns the current filter string, if set. | |
| QModelIndex | indexFromTimeZone (const QTimeZone &timeZone) const |
| Returns the proxy model index corresponding to a time zone. | |
Protected Member Functions | |
| bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
| bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
A sort filter model for display of available time zones.
Definition at line 100 of file qgsdatetimewithtimezonewidget.h.
| QgsTimeZoneSortFilterModel::QgsTimeZoneSortFilterModel | ( | QgsTimeZoneItemModel * | source, |
| QObject * | parent = nullptr ) |
Constructor for a QgsTimeZoneSortFilterModel with the specified parent object and source model.
The source model must exist for the lifetime of the proxy.
Definition at line 162 of file qgsdatetimewithtimezonewidget.cpp.
|
overrideprotected |
Definition at line 182 of file qgsdatetimewithtimezonewidget.cpp.
|
inline |
Returns the current filter string, if set.
Definition at line 117 of file qgsdatetimewithtimezonewidget.h.
| QModelIndex QgsTimeZoneSortFilterModel::indexFromTimeZone | ( | const QTimeZone & | timeZone | ) | const |
Returns the proxy model index corresponding to a time zone.
Definition at line 171 of file qgsdatetimewithtimezonewidget.cpp.
|
overrideprotected |
Definition at line 195 of file qgsdatetimewithtimezonewidget.cpp.
|
slot |
Sets a filter string, such that only time zones with names containing the specified string will be shown.
Definition at line 176 of file qgsdatetimewithtimezonewidget.cpp.