libkdepim
KPIM::KTimeZoneComboBox Class Reference
#include <ktimezonecombobox.h>
Inheritance diagram for KPIM::KTimeZoneComboBox:

Detailed Description
A combobox that shows the system timezones available in KSystemTimeZones::zones() and provides methods to easily select the item corresponding to a given KDateTime::Spec or to retrieve the KDateTime::Spec associated with the selected item.Definition at line 41 of file ktimezonecombobox.h.
Public Member Functions | |
| KTimeZoneComboBox (QWidget *parent=0) | |
| KDateTime::Spec | selectedTimeSpec () |
| void | selectLocalTimeSpec () |
| void | selectTimeSpec (const KDateTime::Spec &spec) |
| void | setFloating (bool floating, const KDateTime::Spec &spec=KDateTime::Spec()) |
| ~KTimeZoneComboBox () | |
Constructor & Destructor Documentation
| KTimeZoneComboBox::KTimeZoneComboBox | ( | QWidget * | parent = 0 |
) |
Definition at line 55 of file ktimezonecombobox.cpp.
| KTimeZoneComboBox::~KTimeZoneComboBox | ( | ) |
Definition at line 61 of file ktimezonecombobox.cpp.
Member Function Documentation
| KDateTime::Spec KTimeZoneComboBox::selectedTimeSpec | ( | ) |
- Returns:
- The timespec associated with the currently selected item.
Definition at line 92 of file ktimezonecombobox.cpp.
| void KTimeZoneComboBox::selectLocalTimeSpec | ( | ) |
Convenience version of selectTimeSpec(const KDateTime::Spec &).
Selects the local timezone specified in the user settings.
Definition at line 87 of file ktimezonecombobox.cpp.
| void KTimeZoneComboBox::selectTimeSpec | ( | const KDateTime::Spec & | spec | ) |
Selects the item in the combobox corresponding to the given spec.
Definition at line 66 of file ktimezonecombobox.cpp.
| void KTimeZoneComboBox::setFloating | ( | bool | floating, | |
| const KDateTime::Spec & | spec = KDateTime::Spec() | |||
| ) |
If floating is true, selects floating timezone.
Else if is valid, selects spec timezone, if not selects local timezone.
Definition at line 107 of file ktimezonecombobox.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference