• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 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:
QFrame

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::KPopupFrame ( QWidget *  parent = 0)

The contructor.

Creates a dialog without buttons.

Definition at line 869 of file kdatetable.cpp.

◆ ~KPopupFrame()

KPopupFrame::~KPopupFrame ( )

The destructor.

Definition at line 876 of file kdatetable.cpp.

Member Function Documentation

◆ close

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.

◆ exec() [1/2]

int KPopupFrame::exec ( const QPoint &  p)

Execute the popup window.

Definition at line 943 of file kdatetable.cpp.

◆ exec() [2/2]

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

Execute the popup window.

Definition at line 957 of file kdatetable.cpp.

◆ keyPressEvent()

void KPopupFrame::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Catch key press events.

Definition at line 881 of file kdatetable.cpp.

◆ leaveModality

void KPopupFrame::leaveModality ( )
signal

◆ popup()

void KPopupFrame::popup ( const QPoint &  pos)

Open the popup window at position pos.

Definition at line 915 of file kdatetable.cpp.

◆ resizeEvent()

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.

◆ setMainWidget()

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-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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