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

Detailed Description
Frame with popup menu behavior.
Definition at line 38 of file kdatetable.h.
Public Slots | |
void | close (int r) |
Signals | |
void | leaveModality () |
Public Member Functions | |
int | exec (int x, int y) |
int | exec (const QPoint &p) |
KPopupFrame (QWidget *parent=0) | |
void | popup (const QPoint &pos) |
virtual void | resizeEvent (QResizeEvent *resize) |
void | setMainWidget (QWidget *m) |
~KPopupFrame () | |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
Constructor & Destructor Documentation
KPopupFrame::KPopupFrame | ( | QWidget * | parent = 0 |
) |
KPopupFrame::~KPopupFrame | ( | ) |
Member Function Documentation
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 795 of file kdatetable.cpp.
int KPopupFrame::exec | ( | int | x, | |
int | y | |||
) |
int KPopupFrame::exec | ( | const QPoint & | p | ) |
void KPopupFrame::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
void KPopupFrame::leaveModality | ( | ) | [signal] |
void KPopupFrame::popup | ( | const QPoint & | pos | ) |
void KPopupFrame::resizeEvent | ( | QResizeEvent * | resize | ) | [virtual] |
The resize event.
Simply resizes the main widget to the whole widgets client size.
Definition at line 810 of file kdatetable.cpp.
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 802 of file kdatetable.cpp.
The documentation for this class was generated from the following files: