digiKam
|
This menu helps the user to select a date quickly. More...
Public Types | |
enum | ItemFlag { NoDate = 1 , DatePicker = 2 , Words = 4 } |
Signals | |
void | dateChanged (const QDate &) |
Public Member Functions | |
DDatePicker * | datePicker () const |
DDatePickerPopup (Items items, const QDate &date=QDate::currentDate(), QWidget *const parent=nullptr) | |
int | items () const |
void | setDate (const QDate &date) |
~DDatePickerPopup () override | |
Protected Slots | |
void | slotDateChanged (const QDate &) |
void | slotNextMonth () |
void | slotNextWeek () |
void | slotNoDate () |
void | slotPrevFriday () |
void | slotPrevMonday () |
void | slotPrevMonth () |
void | slotPrevWeek () |
void | slotToday () |
void | slotTomorrow () |
void | slotYesterday () |
This menu helps the user to select a date quickly.
This menu helps the user to select a date quickly. It offers various ways of selecting, e.g. with a DDatePicker or with words like "Tomorrow".
The available items are:
When supplying multiple items, separate each item with a bitwise OR.
|
explicit |
A constructor for the DDatePickerPopup.
items | List of all desirable items, separated with a bitwise OR. |
date | Initial date of datepicker-widget. |
parent | The object's parent. |
References Digikam::DDatePicker::dateEntered(), Digikam::DDatePicker::dateSelected(), items(), and slotDateChanged().
|
override |
|
signal |
This signal emits the new date (selected with datepicker or other menu-items).
Referenced by slotDateChanged(), slotNextMonth(), slotNextWeek(), slotNoDate(), slotPrevFriday(), slotPrevMonday(), slotPrevMonth(), slotPrevWeek(), slotToday(), slotTomorrow(), and slotYesterday().
DDatePicker * Digikam::DDatePickerPopup::datePicker | ( | ) | const |
int Digikam::DDatePickerPopup::items | ( | ) | const |
Referenced by DDatePickerPopup().
void Digikam::DDatePickerPopup::setDate | ( | const QDate & | date | ) |
|
protectedslot |
References dateChanged().
Referenced by DDatePickerPopup().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().
|
protectedslot |
References dateChanged().