digiKam
Loading...
Searching...
No Matches
Digikam::DDatePicker::Private Class Reference

#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
 
DDatePickerq = 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
 
DDateTabletable = nullptr
 the date table
 
QToolButton * todayButton = nullptr
 
DatePickerValidatorval = nullptr
 the validator for the line edit:
 
QToolButton * yearBackward = nullptr
 the year backward button
 
QToolButton * yearForward = nullptr
 the year forward button
 

Constructor & Destructor Documentation

◆ Private()

Digikam::DDatePicker::Private::Private ( DDatePicker *const  qq)
explicit

Member Function Documentation

◆ fillWeeksCombo()

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().

◆ validDateInYearMonth()

QDate Digikam::DDatePicker::Private::validDateInYearMonth ( int  year,
int  month 
)

Member Data Documentation

◆ closeButton

QToolButton* Digikam::DDatePicker::Private::closeButton = nullptr

◆ fontsize

int Digikam::DDatePicker::Private::fontsize = 0

the font size for the widget

Referenced by Digikam::DDatePicker::fontSize(), and Digikam::DDatePicker::setFontSize().

◆ line

QLineEdit* Digikam::DDatePicker::Private::line = nullptr

the line edit to enter the date directly

Referenced by Digikam::DDatePicker::dateChangedSlot(), and Digikam::DDatePicker::lineEnterPressed().

◆ maxMonthRect

QSize Digikam::DDatePicker::Private::maxMonthRect

the widest month string in pixels:

Referenced by Digikam::DDatePicker::setFontSize().

◆ monthBackward

QToolButton* Digikam::DDatePicker::Private::monthBackward = nullptr

the month backward button

◆ monthForward

QToolButton* Digikam::DDatePicker::Private::monthForward = nullptr

the month forward button

◆ navigationLayout

QBoxLayout* Digikam::DDatePicker::Private::navigationLayout = nullptr

◆ q

DDatePicker* Digikam::DDatePicker::Private::q = nullptr

the date table

◆ selectMonth

QToolButton* Digikam::DDatePicker::Private::selectMonth = nullptr

◆ selectWeek

QComboBox* Digikam::DDatePicker::Private::selectWeek = nullptr

◆ selectYear

QToolButton* Digikam::DDatePicker::Private::selectYear = nullptr

◆ table

◆ todayButton

QToolButton* Digikam::DDatePicker::Private::todayButton = nullptr

◆ val

DatePickerValidator* Digikam::DDatePicker::Private::val = nullptr

the validator for the line edit:

◆ yearBackward

QToolButton* Digikam::DDatePicker::Private::yearBackward = nullptr

the year backward button

◆ yearForward

QToolButton* Digikam::DDatePicker::Private::yearForward = nullptr

the year forward button


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