class KPopupFrame

# class KPopupFrame | Frame with popup menu behaviour. More...
Definition | `#include <kdatetbl.h>`
Inherits | QFrame (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- 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)

#### Public Slots

- void close (int r)

#### Protected Methods

- virtual void keyPressEvent (QKeyEvent* e)
- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- int result
- QWidget *main

## Detailed Description

Frame with popup menu behaviour.

int result | ### result

[protected]

void keyPressEvent (QKeyEvent* e) | ### keyPressEvent

[protected virtual]

Catch key press events.

QWidget * main | ### main

[protected]

void close (int r) | ### close

[slot]

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

KPopupFrame (QWidget* parent=0, const char* name=0) | ### KPopupFrame

The contructor. Creates a dialog without buttons.

void setMainWidget (QWidget* m) | ### setMainWidget

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*) | ### resizeEvent

[virtual]

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

Reimplemented from QFrame.

void popup (const QPoint &pos) | ### popup

Open the popup window at position pos.

int exec (QPoint p) | ### exec

Execute the popup window.

int exec (int x, int y) | ### exec

Dito.

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

- Version: $Id: kdatetbl.h,v 1.31 2002/07/25 13:26:37 lukas Exp $
- Author: Tim Gilman, Mirko Boehm
- Generated: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:37 2003, using kdoc 2.0a54.