• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

libkdepim

KPIM::KTimeZoneComboBox

KPIM::KTimeZoneComboBox Class Reference

#include <ktimezonecombobox.h>

Inheritance diagram for KPIM::KTimeZoneComboBox:

Inheritance graph
[legend]

List of all members.


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:
  • ktimezonecombobox.h
  • ktimezonecombobox.cpp

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal