KDE PIM / Developers / API Docs / libkdepim

KDatePickerPopup Class Reference

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

#include <kdatepickerpopup.h>

Inherits QPopupMenu.

List of all members.

Public Types

Signals

Public Member Functions

Protected Slots


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:

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

Author:
Bram Schoenmakers <bram_s@softhome.net>


Constructor & Destructor Documentation

KDatePickerPopup::KDatePickerPopup int  items = 2,
const QDate &  date = QDate::currentDate(),
QWidget *  parent = 0,
const char *  name = 0
 

A constructor for the KDatePickerPopup.

Parameters:
items List of all desirable items, separated with a bitwise OR.
date Initial date of datepicker-widget.
parent The object's parent.
name The object's name.

Member Function Documentation

KDatePicker * KDatePickerPopup::datePicker  )  const
 

Returns:
A pointer to the private variable mDatePicker, an instance of KDatePicker.

void KDatePickerPopup::setItems int  items = 1  ) 
 

Set items which should be shown and rebuilds the menu afterwards.

Only if the menu is not visible.

Parameters:
items List of all desirable items, separated with a bitwise OR.

int KDatePickerPopup::items  )  const [inline]
 

Returns:
Returns the bitwise result of the active items in the popup.

void KDatePickerPopup::dateChanged QDate   )  [signal]
 

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


The documentation for this class was generated from the following files: