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

libkdepim

  • KPIM
  • KDatePickerPopup
Public Types | Public Slots | Signals | Public Member Functions | List of all members
KPIM::KDatePickerPopup Class Reference

#include <kdatepickerpopup.h>

Inheritance diagram for KPIM::KDatePickerPopup:
Inheritance graph
[legend]

Public Types

enum  Mode { NoDate = 1, DatePicker = 2, Words = 4 }
 

Public Slots

void setDate (const QDate &date)
 

Signals

void dateChanged (const QDate &date)
 

Public Member Functions

 KDatePickerPopup (Modes modes=DatePicker, const QDate &date=QDate::currentDate(), QWidget *parent=0)
 
 ~KDatePickerPopup ()
 
KDatePicker * datePicker () const
 

Detailed Description

This menu helps the user to select a date quickly.

This menu helps the user to select a date quickly. It offers various modes of selecting, e.g. with a KDatePicker or with words like "Tomorrow".

The available modes are:

  • NoDate: A menu-item with "No Date". If chosen, the datepicker will emit a null QDate.
  • DatePicker: Shows a KDatePicker-widget.
  • Words: Shows items like "Today", "Tomorrow" or "Next Week".
Author
Bram Schoenmakers bram_.nosp@m.s@so.nosp@m.fthom.nosp@m.e.ne.nosp@m.t

Definition at line 48 of file kdatepickerpopup.h.

Member Enumeration Documentation

enum KPIM::KDatePickerPopup::Mode

Describes the available selection modes.

Enumerator
NoDate 

A menu-item with "No Date". Will always return an invalid date.

DatePicker 

A menu-item with a KDatePicker.

Words 

A menu-item with list of words that describe a date.

Definition at line 56 of file kdatepickerpopup.h.

Constructor & Destructor Documentation

KDatePickerPopup::KDatePickerPopup ( Modes  modes = DatePicker,
const QDate &  date = QDate::currentDate(),
QWidget *  parent = 0 
)
explicit

Describes the a set of combined modes.

Creates a new date picker popup.

Parameters
modesThe selection modes that shall be offered
dateThe initial date of date picker widget.
parentThe parent object.

Definition at line 144 of file kdatepickerpopup.cpp.

KDatePickerPopup::~KDatePickerPopup ( )

Destroys the date picker popup.

Definition at line 162 of file kdatepickerpopup.cpp.

Member Function Documentation

void KPIM::KDatePickerPopup::dateChanged ( const QDate &  date)
signal

This signal is emitted whenever the user has selected a new date.

Parameters
dateThe new date.
KDatePicker * KDatePickerPopup::datePicker ( ) const

Returns the used KDatePicker object.

Definition at line 167 of file kdatepickerpopup.cpp.

void KDatePickerPopup::setDate ( const QDate &  date)
slot

Sets the current date.

Definition at line 172 of file kdatepickerpopup.cpp.


The documentation for this class was generated from the following files:
  • kdatepickerpopup.h
  • kdatepickerpopup.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal