kplato
KPlato::DateInternalMonthPicker Class Reference
#include <kptdatetable.h>
Detailed Description
A table containing month names.It is used to pick a month directly.
Definition at line 75 of file kptdatetable.h.
Signals | |
void | closeMe (int) |
Public Member Functions | |
DateInternalMonthPicker (int fontsize, QWidget *parent, const char *name=0) | |
QSize | sizeHint () const |
QSize | minimumSizeHint () const |
int | getResult () const |
Protected Member Functions | |
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 Attributes | |
int | result |
short int | activeCol |
short int | activeRow |
QRect | max |
Constructor & Destructor Documentation
|
The constructor.
Definition at line 744 of file kptdatetable.cc. |
Member Function Documentation
|
This is send from the mouse click event handler.
|
|
Catch mouse click and move events to paint a rectangle around the item.
Definition at line 816 of file kptdatetable.cc. |
|
Emit monthSelected(int) when a cell has been released.
Definition at line 883 of file kptdatetable.cc. |
|
Return the result. 0 means no selection (reject()), 1..12 are the months. Definition at line 784 of file kptdatetable.cc. |
|
The minimum size hint.
Definition at line 109 of file kptdatetable.h. |
|
Paint a cell. This simply draws the month names in it. Definition at line 803 of file kptdatetable.cc. |
|
Set up the painter.
Definition at line 790 of file kptdatetable.cc. |
|
The size hint.
Definition at line 777 of file kptdatetable.cc. |
|
The resize event.
Definition at line 796 of file kptdatetable.cc. |
Member Data Documentation
|
the cell under mouse cursor when LBM is pressed
Definition at line 86 of file kptdatetable.h. |
|
Contains the largest rectangle needed by the month names.
Definition at line 91 of file kptdatetable.h. |
|
Store the month that has been clicked [1. .12]. Definition at line 82 of file kptdatetable.h. |
The documentation for this class was generated from the following files: