![]() |
digiKam
|
#include <ddatepicker_p.h>
Public Member Functions | |
void | fillWeeksCombo () |
Private (DDatePicker *const qq) | |
QDate | validDateInYearMonth (int year, int month) |
Public Attributes | |
QToolButton * | closeButton = nullptr |
int | fontsize = 0 |
the font size for the widget | |
QLineEdit * | line = nullptr |
the line edit to enter the date directly | |
QSize | maxMonthRect |
the widest month string in pixels: | |
QToolButton * | monthBackward = nullptr |
the month backward button | |
QToolButton * | monthForward = nullptr |
the month forward button | |
QBoxLayout * | navigationLayout = nullptr |
DDatePicker * | q = nullptr |
the date table | |
QToolButton * | selectMonth = nullptr |
the button for selecting the month directly | |
QComboBox * | selectWeek = nullptr |
QToolButton * | selectYear = nullptr |
the button for selecting the year directly | |
DDateTable * | table = nullptr |
the date table | |
QToolButton * | todayButton = nullptr |
DatePickerValidator * | val = nullptr |
the validator for the line edit: | |
QToolButton * | yearBackward = nullptr |
the year backward button | |
QToolButton * | yearForward = nullptr |
the year forward button | |
|
explicit |
void Digikam::DDatePicker::Private::fillWeeksCombo | ( | ) |
NOTE: every year can have a different number of weeks it could be that we had 53,1..52 and now 1..53 which is the same number but different so always fill with new values We show all week numbers for all weeks between first day of year to last day of year This of course can be a list like 53,1,2..52
Referenced by Digikam::DDatePicker::dateChangedSlot().
QDate Digikam::DDatePicker::Private::validDateInYearMonth | ( | int | year, |
int | month | ||
) |
QToolButton* Digikam::DDatePicker::Private::closeButton = nullptr |
Referenced by Digikam::DDatePicker::hasCloseButton(), and Digikam::DDatePicker::setCloseButton().
int Digikam::DDatePicker::Private::fontsize = 0 |
the font size for the widget
Referenced by Digikam::DDatePicker::fontSize(), and Digikam::DDatePicker::setFontSize().
QLineEdit* Digikam::DDatePicker::Private::line = nullptr |
the line edit to enter the date directly
Referenced by Digikam::DDatePicker::dateChangedSlot(), and Digikam::DDatePicker::lineEnterPressed().
QSize Digikam::DDatePicker::Private::maxMonthRect |
the widest month string in pixels:
Referenced by Digikam::DDatePicker::setFontSize().
QToolButton* Digikam::DDatePicker::Private::monthBackward = nullptr |
the month backward button
QToolButton* Digikam::DDatePicker::Private::monthForward = nullptr |
the month forward button
QBoxLayout* Digikam::DDatePicker::Private::navigationLayout = nullptr |
Referenced by Digikam::DDatePicker::setCloseButton().
DDatePicker* Digikam::DDatePicker::Private::q = nullptr |
the date table
QToolButton* Digikam::DDatePicker::Private::selectMonth = nullptr |
the button for selecting the month directly
Referenced by Digikam::DDatePicker::dateChangedSlot(), Digikam::DDatePicker::selectMonthClicked(), Digikam::DDatePicker::selectYearClicked(), and Digikam::DDatePicker::setFontSize().
QComboBox* Digikam::DDatePicker::Private::selectWeek = nullptr |
Referenced by Digikam::DDatePicker::dateChangedSlot(), and Digikam::DDatePicker::weekSelected().
QToolButton* Digikam::DDatePicker::Private::selectYear = nullptr |
the button for selecting the year directly
Referenced by Digikam::DDatePicker::dateChangedSlot(), Digikam::DDatePicker::selectYearClicked(), Digikam::DDatePicker::setFontSize(), and Digikam::DDatePicker::uncheckYearSelector().
DDateTable* Digikam::DDatePicker::Private::table = nullptr |
the date table
Referenced by Digikam::DDatePicker::changeEvent(), Digikam::DDatePicker::date(), Digikam::DDatePicker::dateTable(), Digikam::DDatePicker::eventFilter(), Digikam::DDatePicker::lineEnterPressed(), Digikam::DDatePicker::monthBackwardClicked(), Digikam::DDatePicker::monthForwardClicked(), Digikam::DDatePicker::selectMonthClicked(), Digikam::DDatePicker::setDate(), Digikam::DDatePicker::setFontSize(), Digikam::DDatePicker::todayButtonClicked(), Digikam::DDatePicker::weekSelected(), Digikam::DDatePicker::yearBackwardClicked(), and Digikam::DDatePicker::yearForwardClicked().
QToolButton* Digikam::DDatePicker::Private::todayButton = nullptr |
DatePickerValidator* Digikam::DDatePicker::Private::val = nullptr |
the validator for the line edit:
QToolButton* Digikam::DDatePicker::Private::yearBackward = nullptr |
the year backward button
QToolButton* Digikam::DDatePicker::Private::yearForward = nullptr |
the year forward button