|
|
Use this class to make a date picker widget.
When a date is selected by the user, it emits a signal: dateSelected(QDate)
KDatePicker (QWidget *parent=0, QDate=QDate::currentDate(), const char *name=0) |
The usual constructor, the given date will be displayed initially.
QSize sizeHint () |
Returns a recommended size for the widget. The recommended size is calculated so that the widget "looks good", that means everything fits in it and there is some additional space between the rows. Also the buttons and every (!) month name fit in the headline.
Reimplemented from QWidget
void setFontSize (int size) |
Set the size of the contents of the datepicker widget using setFontSize. The days are displayed with the font size, the headline gets a size of fontsize + 2 by default. The default is 12pt. Important: this changes the headline size, so adjust it later!
void setHeadlineSize (int size) |
Set the font size of the headline, independent from the rest of the widget. The default size is fontsize + 2.
void dateSelected (QDate) |
This signal is emmitted when the user picked a date.