digiKam
Digikam::DPopupFrame Class Reference
+ Inheritance diagram for Digikam::DPopupFrame:

Public Slots

void close (int r)
 

Signals

void leaveModality ()
 

Public Member Functions

 DPopupFrame (QWidget *const parent=nullptr)
 
int exec (const QPoint &p)
 
int exec (int x, int y)
 
void popup (const QPoint &p)
 
void resizeEvent (QResizeEvent *e) override
 
void setMainWidget (QWidget *const m)
 
 ~DPopupFrame () override
 

Protected Member Functions

void hideEvent (QHideEvent *e) override
 
void keyPressEvent (QKeyEvent *e) override
 

Friends

class Private
 

Constructor & Destructor Documentation

◆ DPopupFrame()

Digikam::DPopupFrame::DPopupFrame ( QWidget *const  parent = nullptr)
explicit

The constructor. Creates a dialog without buttons.

◆ ~DPopupFrame()

Digikam::DPopupFrame::~DPopupFrame ( )
override

The destructor

Member Function Documentation

◆ close

void Digikam::DPopupFrame::close ( int  r)
slot

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

References leaveModality().

◆ exec() [1/2]

int Digikam::DPopupFrame::exec ( const QPoint &  p)

Execute the popup window.

References leaveModality(), and popup().

Referenced by exec(), and Digikam::DDatePicker::selectYearClicked().

◆ exec() [2/2]

int Digikam::DPopupFrame::exec ( int  x,
int  y 
)

Execute the popup window.

References exec().

◆ hideEvent()

void Digikam::DPopupFrame::hideEvent ( QHideEvent *  e)
overrideprotected

Catch hide events.

◆ keyPressEvent()

void Digikam::DPopupFrame::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Catch key press events.

References leaveModality().

◆ leaveModality

void Digikam::DPopupFrame::leaveModality ( )
signal

Referenced by close(), exec(), and keyPressEvent().

◆ popup()

void Digikam::DPopupFrame::popup ( const QPoint &  p)

Open the popup window at position pos.

Referenced by exec().

◆ resizeEvent()

void Digikam::DPopupFrame::resizeEvent ( QResizeEvent *  e)
override

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

◆ setMainWidget()

void Digikam::DPopupFrame::setMainWidget ( QWidget *const  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.

Referenced by Digikam::DDatePicker::selectYearClicked().

Friends And Related Function Documentation

◆ Private

friend class Private
friend

The documentation for this class was generated from the following files: