Eneboo - Documentación para desarrolladores
|
#include <vdatetable.h>
Slots públicos | |
void | close (int r) |
Métodos públicos | |
VPopupFrame (QWidget *parent=0, const char *name=0) | |
void | setMainWidget (QWidget *m) |
void | resizeEvent (QResizeEvent *) |
void | popup (const QPoint &pos) |
int | exec (QPoint p) |
int | exec (int x, int y) |
Métodos protegidos | |
void | keyPressEvent (QKeyEvent *e) |
virtual void | virtual_hook (int id, void *data) |
Atributos protegidos | |
int | result |
QWidget * | main |
VPopupFrame::VPopupFrame | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
The contructor. Creates a dialog without buttons.
void VPopupFrame::close | ( | int | r | ) | [slot] |
Close the popup window. This is called from the main widget, usually. r
is the result returned from exec().
void VPopupFrame::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Catch key press events.
Reimplementado de QWidget.
void VPopupFrame::popup | ( | const QPoint & | pos | ) |
Open the popup window at position pos.
void VPopupFrame::resizeEvent | ( | QResizeEvent * | ) | [virtual] |
The resize event. Simply resizes the main widget to the whole widgets client size.
Reimplementado de QFrame.
void VPopupFrame::setMainWidget | ( | QWidget * | m | ) |
Set the main widget. You cannot set the main widget from the constructor, since it must be a child of the frame itselfes. Be careful: the size is set to the main widgets size. It is up to you to set the main widgets correct size before setting it as the main widget.
void VPopupFrame::virtual_hook | ( | int | id, |
void * | data | ||
) | [protected, virtual] |
QWidget* VPopupFrame::main [protected] |
The only subwidget that uses the whole dialog window.
int VPopupFrame::result [protected] |
The result. It is returned from exec() when the popup window closes.