Eneboo - Documentación para desarrolladores
|
#include <vdatetable.h>
Señales | |
void | closeMe (int) |
Métodos públicos | |
VDateInternalMonthPicker (int fontsize, QWidget *parent, const char *name=0) | |
QSize | sizeHint () const |
int | getResult () const |
Métodos protegidos | |
void | setupPainter (QPainter *p) |
void | viewportResizeEvent (QResizeEvent *) |
virtual void | paintCell (QPainter *painter, int row, int col) |
void | contentsMousePressEvent (QMouseEvent *e) |
void | contentsMouseMoveEvent (QMouseEvent *e) |
void | contentsMouseReleaseEvent (QMouseEvent *e) |
Atributos protegidos | |
int | result |
short int | activeCol |
short int | activeRow |
QRect | max |
A table containing month names. It is used to pick a month directly.
VDateInternalMonthPicker::VDateInternalMonthPicker | ( | int | fontsize, |
QWidget * | parent, | ||
const char * | name = 0 |
||
) |
The constructor.
void VDateInternalMonthPicker::closeMe | ( | int | ) | [signal] |
This is send from the mouse click event handler.
void VDateInternalMonthPicker::contentsMouseMoveEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
This event handler is called whenever the QScrollView receives a mouseMoveEvent(): the mouse position in e is translated to be a point on the contents.
Reimplementado de QScrollView.
void VDateInternalMonthPicker::contentsMousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Catch mouse click and move events to paint a rectangle around the item.
Reimplementado de QScrollView.
void VDateInternalMonthPicker::contentsMouseReleaseEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Emit monthSelected(int) when a cell has been released.
Reimplementado de QScrollView.
int VDateInternalMonthPicker::getResult | ( | ) | const |
Return the result. 0 means no selection (reject()), 1..12 are the months.
void VDateInternalMonthPicker::paintCell | ( | QPainter * | painter, |
int | row, | ||
int | col | ||
) | [protected, virtual] |
Paint a cell. This simply draws the month names in it.
Implementa QGridView.
QSize VDateInternalMonthPicker::sizeHint | ( | ) | const [virtual] |
The size hint.
Reimplementado de QScrollView.
void VDateInternalMonthPicker::viewportResizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
The resize event.
Reimplementado de QScrollView.
short int VDateInternalMonthPicker::activeCol [protected] |
the cell under mouse cursor when LBM is pressed
short int VDateInternalMonthPicker::activeRow [protected] |
QRect VDateInternalMonthPicker::max [protected] |
Contains the largest rectangle needed by the month names.
int VDateInternalMonthPicker::result [protected] |
Store the month that has been clicked [1..12].