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

Public Slots

void close (int r)
 

Signals

void leaveModality ()
 

Public Member Functions

int exec (const QPoint &pos)
 
int exec (int x, int y)
 
 PanIconFrame (QWidget *const parent=nullptr)
 
void popup (const QPoint &pos)
 
void resizeEvent (QResizeEvent *resize) override
 
void setMainWidget (QWidget *const main)
 
 ~PanIconFrame () override
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 

Friends

class Private
 

Detailed Description

Frame with popup menu behavior to host PanIconWidget.

Constructor & Destructor Documentation

◆ PanIconFrame()

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

◆ ~PanIconFrame()

Digikam::PanIconFrame::~PanIconFrame ( )
override

Member Function Documentation

◆ close

void Digikam::PanIconFrame::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::PanIconFrame::exec ( const QPoint &  pos)

Execute the popup window.

References leaveModality(), and popup().

Referenced by exec().

◆ exec() [2/2]

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

Execute the popup window.

References exec().

◆ keyPressEvent()

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

Catch key press events.

References leaveModality().

◆ leaveModality

void Digikam::PanIconFrame::leaveModality ( )
signal

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

◆ popup()

void Digikam::PanIconFrame::popup ( const QPoint &  pos)

Open the popup window at position pos.

Referenced by exec().

◆ resizeEvent()

void Digikam::PanIconFrame::resizeEvent ( QResizeEvent *  resize)
override

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

◆ setMainWidget()

void Digikam::PanIconFrame::setMainWidget ( QWidget *const  main)

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.

References main().

Friends And Related Function Documentation

◆ Private

friend class Private
friend

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