class KDateTable

Date selection table. More...

Internal Use Only
Definition#include <kdatetbl.h>
InheritsQTableView
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Methods

Protected Members


Detailed Description

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)

 KDateTable (QWidget *parent=0, QDate date=QDate::currentDate(), const char* name=0, WFlags f=0)

The constructor.

QSize  sizeHint ()

[const virtual]

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.

void  setFontSize (int size)

Set the font size of the date table.

bool  setDate (const QDate&)

Select and display this date.

const QDate&  getDate ()

void  paintCell (QPainter*, int, int)

[protected virtual]

Paint a cell.

void  resizeEvent (QResizeEvent *)

[protected virtual]

Handle the resize events.

void  mousePressEvent (QMouseEvent *)

[protected virtual]

React on mouse clicks that select a date.

int fontsize

[protected]

The font size of the displayed text.

QDate date

[protected]

The currently selected date.

int firstday

[protected]

The day of the first day in the month [1..7].

int numdays

[protected]

The number of days in the current month.

int numDaysPrevMonth

[protected]

The number of days in the previous month.

bool hasSelection

[protected]

Whether something has been selected or not.

QRect maxCell

[protected]

Save the size of the largest used cell content.

void  dateChanged (QDate)

[signal]

The selected date changed.

void  tableClicked ()

[signal]

A date has been selected by clicking on the table.