class KDateInternalMonthPicker

# class KDateInternalMonthPicker | A table containing month names. More...
Internal Use Only
Definition | `#include <kdatetbl.h>`
Inherits | QGridView (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KDateInternalMonthPicker (int fontsize, QWidget* parent, const char* name=0)
- QSize sizeHint () const
- int getResult () const

#### Signals

- void closeMe (int)

#### Protected Methods

- void setupPainter (QPainter *p)
- virtual void viewportResizeEvent (QResizeEvent*)
- virtual void paintCell (QPainter* painter, int row, int col)
- virtual void contentsMousePressEvent (QMouseEvent *e)
- virtual void contentsMouseMoveEvent (QMouseEvent *e)
- virtual void contentsMouseReleaseEvent (QMouseEvent *e)

#### Protected Members

- int result
- short int activeCol
- short int activeRow
- QRect max

## Detailed Description

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

int result | ### result

[protected]

short int activeCol | ### activeCol

[protected]

short int activeRow | ### activeRow

[protected]

QRect max | ### max

[protected]

void closeMe (int) | ### closeMe

[signal]

This is send from the mouse click event handler.

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

The constructor.

QSize sizeHint () | ### sizeHint

[const]

The size hint.

int getResult () | ### getResult

[const]

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

void setupPainter (QPainter *p) | ### setupPainter

[protected]

Set up the painter.

void viewportResizeEvent (QResizeEvent*) | ### viewportResizeEvent

[protected virtual]

The resize event.

void paintCell (QPainter* painter, int row, int col) | ### paintCell

[protected virtual]

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

void contentsMousePressEvent (QMouseEvent *e) | ### contentsMousePressEvent

[protected virtual]

Catch mouse click and move events to paint a rectangle around the item.

void contentsMouseMoveEvent (QMouseEvent *e) | ### contentsMouseMoveEvent

[protected virtual]

void contentsMouseReleaseEvent (QMouseEvent *e) | ### contentsMouseReleaseEvent

[protected virtual]

Emit monthSelected(int) when a cell has been released.

- Version: $Id: kdatetbl.h,v 1.31 2002/07/25 13:26:37 lukas Exp $
- Author: Tim Gilman, Mirko Boehm
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.