|
|
Date selection table. This is a support class for the KDatePicker class. It just draws the calender table without titles, but could theoretically be used as a standalone.
When a date is selected by the user, it emits a signal: dateSelected(QDate)
|
The constructor.
QSize |
[const]
Returns a recommended size for the widget. To save some time, the size of the largest used cell content is calculated in each paintCell() call, since all calculations have to be done there anyway. The size is stored in maxCell. The sizeHint() simply returns a multiple of maxCell.
Reimplemented from QWidget
void |
Set the font size of the date table.
bool |
Select and display this date.
void |
[protected]
Paint a cell.
Reimplemented from QTableView
void |
[protected]
Handle the resize events.
Reimplemented from QTableView
void |
[protected]
React on mouse clicks that select a date.
Reimplemented from QWidget
int |
[protected]
The font size of the displayed text.
QDate |
[protected]
The currently selected date.
int |
[protected]
The day of the first day in the month [1..7].
int |
[protected]
The number of days in the current month.
int |
[protected]
The number of days in the previous month.
bool |
[protected]
Whether something has been selected or not.
QRect |
[protected]
Save the size of the largest used cell content.
QString [7] |
[protected]
The day names.
void |
[signal]
The selected date changed.
void |
[signal]
A date has been selected by clicking on the table.