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

Detailed Description
Frame with popup menu behavior.
- Author:
- Tim Gilman, Mirko Boehm
- Version:
- Id
- kdatetbl.h 465272 2005-09-29 09:47:40Z mueller
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
|
The contructor. Creates a dialog without buttons. Definition at line 900 of file kdatetbl.cpp. |
|
The destructor.
Definition at line 910 of file kdatetbl.cpp. |
Member Function Documentation
|
Close the popup window.
This is called from the main widget, usually. Definition at line 927 of file kdatetbl.cpp. |
|
Execute the popup window.
Definition at line 999 of file kdatetbl.cpp. |
|
Execute the popup window.
Definition at line 988 of file kdatetbl.cpp. |
|
Hides the widget. Reimplemented from QWidget Definition at line 933 of file kdatetbl.cpp. |
|
Catch key press events.
Definition at line 916 of file kdatetbl.cpp. |
|
Open the popup window at position pos.
Definition at line 964 of file kdatetbl.cpp. |
|
The resize event. Simply resizes the main widget to the whole widgets client size. Reimplemented from QFrame. Definition at line 954 of file kdatetbl.cpp. |
|
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 944 of file kdatetbl.cpp. |
Member Data Documentation
|
The only subwidget that uses the whole dialog window.
Definition at line 181 of file kdatetbl.h. |
|
The result. It is returned from exec() when the popup window closes. Definition at line 173 of file kdatetbl.h. |
The documentation for this class was generated from the following files: