KPopupFrame Class Reference
#include <kdatetbl.h>
Inheritance diagram for KPopupFrame:

Detailed Description
Frame with popup menu behavior.
- Version:
- Id
- kdatetbl.h 565029 2006-07-22 07:30:24Z kling
Definition at line 166 of file kdatetbl.h.
Public Slots | |
void | close (int r) |
void | hide () |
Public Member Functions | |
KPopupFrame (QWidget *parent=0, const char *name=0) | |
~KPopupFrame () | |
void | setMainWidget (QWidget *m) |
virtual void | resizeEvent (QResizeEvent *) |
void | popup (const QPoint &pos) |
int | exec (QPoint p) |
int | exec (int x, int y) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
int | result |
QWidget * | main |
Constructor & Destructor Documentation
KPopupFrame::KPopupFrame | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
KPopupFrame::~KPopupFrame | ( | ) |
Member Function Documentation
void KPopupFrame::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
void KPopupFrame::close | ( | int | r | ) | [slot] |
Close the popup window.
This is called from the main widget, usually. r
is the result returned from exec().
Definition at line 942 of file kdatetbl.cpp.
void KPopupFrame::hide | ( | ) | [slot] |
void KPopupFrame::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.
Definition at line 961 of file kdatetbl.cpp.
void KPopupFrame::resizeEvent | ( | QResizeEvent * | ) | [virtual] |
The resize event.
Simply resizes the main widget to the whole widgets client size.
Reimplemented from QFrame.
Definition at line 971 of file kdatetbl.cpp.
void KPopupFrame::popup | ( | const QPoint & | pos | ) |
int KPopupFrame::exec | ( | QPoint | p | ) |
int KPopupFrame::exec | ( | int | x, | |
int | y | |||
) |
Member Data Documentation
int KPopupFrame::result [protected] |
The result.
It is returned from exec() when the popup window closes.
Definition at line 173 of file kdatetbl.h.
QWidget* KPopupFrame::main [protected] |
The documentation for this class was generated from the following files: