class KDateInternalMonthPicker

A table containing month names. 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

A table containing month names. It is used to pick a month directly.

int result
[protected]

Store the month that has been clicked [1..12].

QRect max
[protected]

Contains the largest rectangle needed by the month names.

void closeMe (int)
[signal]

This is send from the mouse click event handler.

KDateInternalMonthPicker (int fontsize, QWidget* parent, const char* name=0)

The constructor.

QSize sizeHint ()
[const]

The size hint.

int getResult ()

Return the result. 0 means no selection (reject()), 1..12 are the months.

void setupPainter (QPainter *p)
[protected]

Set up the painter.

void resizeEvent (QResizeEvent*)
[protected]

The resize event.

void paintCell (QPainter* painter, int row, int col)
[protected]

Paint a cell. This simply draws the month names in it.

void mousePressEvent (QMouseEvent *e)
[protected]

Catch mouse click events. Emit monthSelected(int) when a cell has been clicked.