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
KPlato::DateInternalMonthPicker::DateInternalMonthPicker | ( | int | fontsize, | |
QWidget * | parent, | |||
const char * | name = 0 | |||
) |
Member Function Documentation
void KPlato::DateInternalMonthPicker::closeMe | ( | int | ) | [signal] |
This is send from the mouse click event handler.
void KPlato::DateInternalMonthPicker::contentsMousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Catch mouse click and move events to paint a rectangle around the item.
Definition at line 816 of file kptdatetable.cc.
void KPlato::DateInternalMonthPicker::contentsMouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Emit monthSelected(int) when a cell has been released.
Definition at line 883 of file kptdatetable.cc.
int KPlato::DateInternalMonthPicker::getResult | ( | ) | const |
Return the result.
0 means no selection (reject()), 1..12 are the months.
Definition at line 784 of file kptdatetable.cc.
QSize KPlato::DateInternalMonthPicker::minimumSizeHint | ( | ) | const [inline] |
void KPlato::DateInternalMonthPicker::paintCell | ( | QPainter * | painter, | |
int | row, | |||
int | col | |||
) | [protected, virtual] |
Paint a cell.
This simply draws the month names in it.
Definition at line 803 of file kptdatetable.cc.
void KPlato::DateInternalMonthPicker::setupPainter | ( | QPainter * | p | ) | [protected] |
QSize KPlato::DateInternalMonthPicker::sizeHint | ( | ) | const |
void KPlato::DateInternalMonthPicker::viewportResizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Member Data Documentation
short int KPlato::DateInternalMonthPicker::activeCol [protected] |
QRect KPlato::DateInternalMonthPicker::max [protected] |
Contains the largest rectangle needed by the month names.
Definition at line 91 of file kptdatetable.h.
int KPlato::DateInternalMonthPicker::result [protected] |
The documentation for this class was generated from the following files: