class QPopupFrame

Frame with popup menu behaviour. More...

Definition#include <kdatetbl.h>
InheritsQFrame
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Protected Methods

Protected Members


Detailed Description

Frame with popup menu behaviour.

int result

[protected]

The result. It is returned from exec() when the popup window closes.

void  keyPressEvent (QKeyEvent* e)

[protected]

Catch key press events.

QWidget * main

[protected]

The only subwidget that uses the whole dialog window.

void  close (int r)

[slot]

Close the popup window. This is called from the main widget, usually. r is the result returned from exec().

 QPopupFrame (QWidget* parent=0, const char* name=0)

The contructor. Creates a dialog without buttons.

void  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  resizeEvent (QResizeEvent*)

The resize event. Simply resizes the main widget to the whole widgets client size.

int  exec (QPoint p)

Execute the popup window.

int  exec (int x, int y)

Dito.