• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

Public Types | Signals | Public Member Functions | Protected Slots | List of all members
KDatePickerPopup Class Reference

#include <kdatepickerpopup_p.h>

Inherits QMenu.

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_.nosp@m.s@so.nosp@m.fthom.nosp@m.e.ne.nosp@m.t

Definition at line 47 of file kdatepickerpopup_p.h.

Member Enumeration Documentation

◆ ItemFlag

enum KDatePickerPopup::ItemFlag

Definition at line 52 of file kdatepickerpopup_p.h.

Constructor & Destructor Documentation

◆ KDatePickerPopup()

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.

Definition at line 61 of file kdatepickerpopup.cpp.

Member Function Documentation

◆ dateChanged

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

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

Parameters
datechanged date

◆ datePicker()

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

Definition at line 110 of file kdatepickerpopup.cpp.

◆ items()

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

Definition at line 87 of file kdatepickerpopup_p.h.

◆ setDate()

void KDatePickerPopup::setDate ( const QDate & date)

Definition at line 115 of file kdatepickerpopup.cpp.

◆ slotDateChanged

void KDatePickerPopup::slotDateChanged ( const QDate & date)
protectedslot

Definition at line 128 of file kdatepickerpopup.cpp.

◆ slotNextMonth

void KDatePickerPopup::slotNextMonth ( )
protectedslot

Definition at line 156 of file kdatepickerpopup.cpp.

◆ slotNextWeek

void KDatePickerPopup::slotNextWeek ( )
protectedslot

Definition at line 151 of file kdatepickerpopup.cpp.

◆ slotNoDate

void KDatePickerPopup::slotNoDate ( )
protectedslot

Definition at line 146 of file kdatepickerpopup.cpp.

◆ slotToday

void KDatePickerPopup::slotToday ( )
protectedslot

Definition at line 136 of file kdatepickerpopup.cpp.

◆ slotTomorrow

void KDatePickerPopup::slotTomorrow ( )
protectedslot

Definition at line 141 of file kdatepickerpopup.cpp.


The documentation for this class was generated from the following files:
  • kdatepickerpopup_p.h
  • kdatepickerpopup.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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