digiKam
|
Classes | |
class | Private |
Signals | |
void | dateChanged (const QDate &date) |
void | dateEntered (const QDate &date) |
void | dateSelected (const QDate &date) |
void | tableClicked () |
Public Member Functions | |
const QDate & | date () const |
DDateTable * | dateTable () const |
DDatePicker (const QDate &dt, QWidget *const parent=nullptr) | |
DDatePicker (QWidget *const parent=nullptr) | |
int | fontSize () const |
bool | hasCloseButton () const |
void | setCloseButton (bool enable) |
bool | setDate (const QDate &date) |
void | setFontSize (int) |
QSize | sizeHint () const override |
~DDatePicker () override | |
Protected Slots | |
void | dateChangedSlot (const QDate &date) |
void | lineEnterPressed () |
void | monthBackwardClicked () |
void | monthForwardClicked () |
void | selectMonthClicked () |
void | selectYearClicked () |
void | tableClickedSlot () |
void | todayButtonClicked () |
void | uncheckYearSelector () |
void | weekSelected (int) |
void | yearBackwardClicked () |
void | yearForwardClicked () |
Protected Member Functions | |
void | changeEvent (QEvent *) override |
bool | eventFilter (QObject *, QEvent *) override |
to catch move keyEvents when QLineEdit has keyFocus More... | |
void | resizeEvent (QResizeEvent *) override |
the resize event More... | |
Properties | |
bool | closeButton |
QDate | date |
int | fontSize |
Friends | |
class | Private |
Provides a widget for calendar date input.
|
explicit |
The constructor. The current date will be displayed initially.
|
explicit |
The constructor. The given date will be displayed initially.
|
override |
The destructor.
|
overrideprotected |
References Digikam::DDatePicker::Private::table.
const QDate & Digikam::DDatePicker::date | ( | ) | const |
References Digikam::DDateTable::date, and Digikam::DDatePicker::Private::table.
|
signal |
This signal is emitted each time the selected date is changed. Usually, this does not mean that the date has been entered, since the date also changes, for example, when another month is selected.
Referenced by dateChangedSlot().
|
protectedslot |
|
signal |
This signal is emitted when enter is pressed and a VALID date has been entered before into the line edit. Connect to both dateEntered() and dateSelected() to receive all events where the user really enters a date.
Referenced by Digikam::DDatePickerPopup::DDatePickerPopup(), and lineEnterPressed().
|
signal |
This signal is emitted each time a day has been selected by clicking on the table (hitting a day in the current month). It has the same meaning as dateSelected() in older versions of DDatePicker.
Referenced by Digikam::DDatePickerPopup::DDatePickerPopup(), and tableClickedSlot().
DDateTable * Digikam::DDatePicker::dateTable | ( | ) | const |
References Digikam::DDatePicker::Private::table.
|
overrideprotected |
to catch move keyEvents when QLineEdit has keyFocus
References Digikam::DDatePicker::Private::table.
int Digikam::DDatePicker::fontSize | ( | ) | const |
Returns the font size of the widget elements.
References Digikam::DDatePicker::Private::fontsize.
bool Digikam::DDatePicker::hasCloseButton | ( | ) | const |
References Digikam::DDatePicker::Private::closeButton.
|
protectedslot |
|
protectedslot |
References date, setDate(), and Digikam::DDatePicker::Private::table.
|
protectedslot |
References date, setDate(), and Digikam::DDatePicker::Private::table.
|
overrideprotected |
the resize event
|
protectedslot |
|
protectedslot |
void Digikam::DDatePicker::setCloseButton | ( | bool | enable | ) |
By calling this method with enable
= true, DDatePicker will show a little close-button in the upper button-row. Clicking the close-button will cause the DDatePicker's topLevelWidget()'s close() method being called. This is mostly useful for toplevel datepickers without a window manager decoration.
References Digikam::DDatePicker::Private::closeButton, and Digikam::DDatePicker::Private::navigationLayout.
bool Digikam::DDatePicker::setDate | ( | const QDate & | date | ) |
Sets the date.
false
and does not change anything if the date given is invalid. References Digikam::DDateTable::setDate(), and Digikam::DDatePicker::Private::table.
Referenced by lineEnterPressed(), monthBackwardClicked(), monthForwardClicked(), selectMonthClicked(), selectYearClicked(), todayButtonClicked(), weekSelected(), yearBackwardClicked(), and yearForwardClicked().
void Digikam::DDatePicker::setFontSize | ( | int | s | ) |
Sets the font size of the widgets elements.
References Digikam::DDatePicker::Private::fontsize, DigikamGenericINatPlugin::locale, Digikam::DDatePicker::Private::maxMonthRect, Digikam::DDatePicker::Private::selectMonth, Digikam::DDatePicker::Private::selectYear, Digikam::DDateTable::setFontSize(), and Digikam::DDatePicker::Private::table.
|
override |
The size hint for date pickers. The size hint recommends the minimum size of the widget so that all elements may be placed without clipping. This sometimes looks ugly, so when using the size hint, try adding 28 to each of the reported numbers of pixels.
|
signal |
This signal is emitted when the day has been selected by clicking on it in the table.
Referenced by tableClickedSlot().
|
protectedslot |
References date, dateSelected(), and tableClicked().
|
protectedslot |
References setDate(), and Digikam::DDatePicker::Private::table.
|
protectedslot |
References Digikam::DDatePicker::Private::selectYear.
|
protectedslot |
|
protectedslot |
References Digikam::DDateTable::date, setDate(), and Digikam::DDatePicker::Private::table.
|
protectedslot |
References Digikam::DDateTable::date, setDate(), and Digikam::DDatePicker::Private::table.
|
friend |
|
readwrite |
|
readwrite |
Referenced by monthBackwardClicked(), monthForwardClicked(), selectMonthClicked(), selectYearClicked(), and tableClickedSlot().
|
readwrite |