Frame with popup menu behavior to host PanIconWidget.
|
void | close (int r) |
| Close the popup window.
|
|
|
| PanIconFrame (QWidget *const parent=nullptr) |
|
int | exec (const QPoint &pos) |
| Execute the popup window.
|
|
int | exec (int x, int y) |
| Execute the popup window.
|
|
void | popup (const QPoint &pos) |
| Open the popup window at position pos.
|
|
void | resizeEvent (QResizeEvent *resize) override |
| The resize event.
|
|
void | setMainWidget (QWidget *const main) |
| Set the main widget.
|
|
|
void | keyPressEvent (QKeyEvent *e) override |
| Catch key press events.
|
|
◆ close
void Digikam::PanIconFrame::close |
( |
int |
r | ) |
|
|
slot |
This is called from the main widget, usually. r
is the result returned from exec().
◆ resizeEvent()
void Digikam::PanIconFrame::resizeEvent |
( |
QResizeEvent * |
resize | ) |
|
|
override |
Simply resizes the main widget to the whole widgets client size.
◆ setMainWidget()
void Digikam::PanIconFrame::setMainWidget |
( |
QWidget *const |
main | ) |
|
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.