KPopupFrame Class Reference
Frame with popup menu behavior. More...
#include <kdatetbl.h>
Inheritance diagram for KPopupFrame:

Public Slots | |
void | close (int r) |
Public Member Functions | |
KPopupFrame (QWidget *parent=0, const char *name=0) | |
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 |
Detailed Description
Frame with popup menu behavior.
- Author:
- Tim Gilman, Mirko Boehm
- Version:
- Id
- kdatetbl.h,v 1.43 2003/10/17 22:25:17 danimo Exp
Definition at line 162 of file kdatetbl.h.
Constructor & Destructor Documentation
|
The contructor. Creates a dialog without buttons. Definition at line 843 of file kdatetbl.cpp. |
Member Function Documentation
|
Catch key press events. Definition at line 853 of file kdatetbl.cpp. References result. |
|
Close the popup window.
This is called from the main widget, usually. References result. |
|
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 870 of file kdatetbl.cpp. References main. Referenced by KDatePicker::selectYearClicked(). |
|
The resize event. Simply resizes the main widget to the whole widgets client size. Definition at line 880 of file kdatetbl.cpp. References main. |
|
Open the popup window at position pos. Definition at line 890 of file kdatetbl.cpp. References KGlobalSettings::desktopGeometry(). Referenced by exec(). |
|
Execute the popup window. Definition at line 914 of file kdatetbl.cpp. References popup(), and result. Referenced by exec(), and KDatePicker::selectYearClicked(). |
|
Dito. Definition at line 924 of file kdatetbl.cpp. References exec(). |
Member Data Documentation
|
The result. It is returned from exec() when the popup window closes. Definition at line 169 of file kdatetbl.h. Referenced by close(), exec(), and keyPressEvent(). |
|
The only subwidget that uses the whole dialog window. Definition at line 177 of file kdatetbl.h. Referenced by resizeEvent(), and setMainWidget(). |
The documentation for this class was generated from the following files: