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

KDEUI

Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
KPopupFrame Class Reference

#include <kdatetable.h>

Inheritance diagram for KPopupFrame:
Inheritance graph
[legend]

Public Slots

void close (int r)
 

Signals

void leaveModality ()
 

Public Member Functions

 KPopupFrame (QWidget *parent=0)
 
 ~KPopupFrame ()
 
int exec (const QPoint &p)
 
int exec (int x, int y)
 
void popup (const QPoint &pos)
 
virtual void resizeEvent (QResizeEvent *resize)
 
void setMainWidget (QWidget *m)
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
 

Detailed Description

Frame with popup menu behavior.

Author
Tim Gilman, Mirko Boehm

Definition at line 41 of file kdatetable.h.

Constructor & Destructor Documentation

KPopupFrame::KPopupFrame ( QWidget *  parent = 0)

The contructor.

Creates a dialog without buttons.

Definition at line 869 of file kdatetable.cpp.

KPopupFrame::~KPopupFrame ( )

The destructor.

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

int KPopupFrame::exec ( const QPoint &  p)

Execute the popup window.

Definition at line 943 of file kdatetable.cpp.

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

Execute the popup window.

Definition at line 957 of file kdatetable.cpp.

void KPopupFrame::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Catch key press events.

Definition at line 881 of file kdatetable.cpp.

void KPopupFrame::leaveModality ( )
signal
void KPopupFrame::popup ( const QPoint &  pos)

Open the popup window at position pos.

Definition at line 915 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 905 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 897 of file kdatetable.cpp.


The documentation for this class was generated from the following files:
  • kdatetable.h
  • kdatetable.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal