#include <kdatetbl.h>
Signals | |
| void | dateChanged (QDate) |
| void | tableClicked () |
Public Methods | |
| KDateTable (QWidget *parent=0, QDate date=QDate::currentDate(), const char *name=0, WFlags f=0) | |
| virtual QSize | sizeHint () const |
| void | setFontSize (int size) |
| bool | setDate (const QDate &) |
Protected Methods | |
| virtual void | paintCell (QPainter *, int, int) |
| virtual void | viewportResizeEvent (QResizeEvent *) |
| virtual void | contentsMousePressEvent (QMouseEvent *) |
Protected Attributes | |
| int | fontsize |
| QDate | date |
| int | firstday |
| int | numdays |
| int | numDaysPrevMonth |
| bool | unused_hasSelection |
| QRect | maxCell |
When a date is selected by the user, it emits a signal: dateSelected(QDate)
Definition at line 245 of file kdatetbl.h.
|
||||||||||||||||||||
|
The constructor. |
|
|
React on mouse clicks that select a date. |
|
|
The selected date changed. |
|
||||||||||||||||
|
Paint a cell. |
|
|
Select and display this date. |
|
|
Set the font size of the date table. |
|
|
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. |
|
|
A date has been selected by clicking on the table. |
|
|
Handle the resize events. |
|
|
The currently selected date. Definition at line 298 of file kdatetbl.h. |
|
|
The day of the first day in the month [1..7]. Definition at line 302 of file kdatetbl.h. |
|
|
The font size of the displayed text. Definition at line 294 of file kdatetbl.h. |
|
|
Save the size of the largest used cell content. Definition at line 319 of file kdatetbl.h. |
|
|
The number of days in the current month. Definition at line 306 of file kdatetbl.h. |
|
|
The number of days in the previous month. Definition at line 310 of file kdatetbl.h. |
|
|
unused ### remove in KDE 4.0 Definition at line 315 of file kdatetbl.h. |
1.2.18