• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi/contact

Public Types | Signals | Public Member Functions | Protected Slots
KDatePickerPopup Class Reference

This menu helps the user to select a date quickly. More...

#include <kdatepickerpopup_p.h>

Inherits QMenu.

List of all members.

Public Types

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

Signals

void dateChanged (const QDate &date)

Public Member Functions

 KDatePickerPopup (Items items=DatePicker, const QDate &date=QDate::currentDate(), QWidget *parent=0)
KDatePicker * datePicker () const
int items () const
void setDate (const QDate &date)

Protected Slots

void slotDateChanged (const QDate &date)
void slotNextMonth ()
void slotNextWeek ()
void slotNoDate ()
void slotToday ()
void slotTomorrow ()

Detailed Description

This menu helps the user to select a date quickly.

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

The available items are:

  • NoDate: A menu-item with "No Date". If chosen, the datepicker will emit a null QDate.
  • DatePicker: Show a KDatePicker-widget.
  • Words: Show items like "Today", "Tomorrow" or "Next Week".

When supplying multiple items, separate each item with a bitwise OR.

Author:
Bram Schoenmakers <bram_s@softhome.net>

Definition at line 47 of file kdatepickerpopup_p.h.


Constructor & Destructor Documentation

KDatePickerPopup::KDatePickerPopup ( Items  items = DatePicker,
const QDate &  date = QDate::currentDate(),
QWidget *  parent = 0 
) [explicit]

A constructor for the KDatePickerPopup.

Parameters:
itemsList of all desirable items, separated with a bitwise OR.
dateInitial date of datepicker-widget.
parentThe object's parent.
nameThe object's name.

Definition at line 60 of file kdatepickerpopup.cpp.


Member Function Documentation

void KDatePickerPopup::dateChanged ( const QDate &  date) [signal]

This signal emits the new date (selected with datepicker or other menu-items).

KDatePicker * KDatePickerPopup::datePicker ( ) const
Returns:
A pointer to the private variable mDatePicker, an instance of KDatePicker.

Definition at line 109 of file kdatepickerpopup.cpp.

int KDatePickerPopup::items ( ) const [inline]
Returns:
Returns the bitwise result of the active items in the popup.

Definition at line 88 of file kdatepickerpopup_p.h.


The documentation for this class was generated from the following files:
  • kdatepickerpopup_p.h
  • kdatepickerpopup.cpp

akonadi/contact

Skip menu "akonadi/contact"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.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