• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KPopupFrame Class Reference

Frame with popup menu behavior. More...

#include <kdatetable.h>

Inheritance diagram for KPopupFrame:

Inheritance graph
[legend]

List of all members.


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)

Detailed Description

Frame with popup menu behavior.

Author:
Tim Gilman, Mirko Boehm

Definition at line 38 of file kdatetable.h.


Constructor & Destructor Documentation

KPopupFrame::KPopupFrame ( QWidget *  parent = 0  ) 

The contructor.

Creates a dialog without buttons.

Definition at line 834 of file kdatetable.cpp.

KPopupFrame::~KPopupFrame (  ) 

The destructor.

Definition at line 841 of file kdatetable.cpp.


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 855 of file kdatetable.cpp.

int KPopupFrame::exec ( int  x,
int  y 
)

Execute the popup window.

Definition at line 921 of file kdatetable.cpp.

int KPopupFrame::exec ( const QPoint &  p  ) 

Execute the popup window.

Definition at line 908 of file kdatetable.cpp.

void KPopupFrame::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Catch key press events.

Definition at line 846 of file kdatetable.cpp.

void KPopupFrame::leaveModality (  )  [signal]

void KPopupFrame::popup ( const QPoint &  pos  ) 

Open the popup window at position pos.

Definition at line 880 of file kdatetable.cpp.

void KPopupFrame::resizeEvent ( QResizeEvent *  resize  )  [virtual]

The resize event.

Simply resizes the main widget to the whole widgets client size.

Definition at line 870 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 862 of file kdatetable.cpp.


The documentation for this class was generated from the following files:
  • kdatetable.h
  • kdatetable.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal