Incidenceeditor
ktimezonecombobox.cpp
A combobox that shows the system timezones available in QTimeZone and provides methods to easily sele...
Definition ktimezonecombobox.h:28
KTimeZoneComboBox(QWidget *parent=nullptr)
Creates a new time zone combobox.
Definition ktimezonecombobox.cpp:53
QTimeZone selectedTimeZone() const
Return the time zone associated with the currently selected item.
Definition ktimezonecombobox.cpp:96
void selectTimeZone(const QTimeZone &zone)
Selects the item in the combobox corresponding to the given zone.
Definition ktimezonecombobox.cpp:62
void applyTimeZoneTo(QDateTime &dt) const
Applies the selected timezone to the given QDateTime This isn't the same as dt.setTimeZone(selectedTi...
Definition ktimezonecombobox.cpp:132
void selectTimeZoneFor(const QDateTime &dateTime)
Selects the item in the combobox corresponding to the zone for the given datetime.
Definition ktimezonecombobox.cpp:88
~KTimeZoneComboBox() override
Destroys the time zone combobox.
bool isFloating() const
Returns true if the selecting timezone is the floating time zone.
Definition ktimezonecombobox.cpp:141
void setFloating(bool floating, const QTimeZone &zone={})
If floating is true, selects floating time zone, otherwise if @zone is valid, selects @pzone time zon...
Definition ktimezonecombobox.cpp:119
void selectLocalTimeZone()
Convenience version of selectTimeZone(const QTimeZone &).
Definition ktimezonecombobox.cpp:114
QString i18n(const char *text, const TYPE &arg...)
void addItem(const QIcon &icon, const QString &text, const QVariant &userData)
void clear()
void setCurrentIndex(int index)
void setTimeZone(const QTimeZone &toZone)
Qt::TimeSpec timeSpec() const const
QTimeZone timeZone() const const
void append(QList< T > &&value)
iterator begin()
void clear()
qsizetype count() const const
iterator end()
void reserve(qsizetype size)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
LocalTime
LocalTime
QList< QByteArray > availableTimeZoneIds()
QByteArray id() const const
bool isValid() const const
QTimeZone systemTimeZone()
QByteArray systemTimeZoneId()
QTimeZone utc()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.