![]() |
Fraxinus
22.04
An IGT application
|
#include <cxPopupToolbarWidget.h>
Signals | |
| void | popup (bool show) |
Public Member Functions | |
| PopupToolbarWidget (QWidget *parent) | |
| bool | popupIsVisible () const |
| void | setPopupVisible (bool val) |
| QWidget * | getToolbar () |
| void | refresh () |
A toolbar that pops up inside a layout, controlled by a popup button floating over the parent widget.
Note: In order to get this working, set the parent layout margin and spacing to zero.
Add buttons to the toolbar by adding to getToolbar()
Definition at line 51 of file cxPopupToolbarWidget.h.
| cx::PopupToolbarWidget::PopupToolbarWidget | ( | QWidget * | parent | ) |
Definition at line 74 of file cxPopupToolbarWidget.cpp.
| QWidget * cx::PopupToolbarWidget::getToolbar | ( | ) |
Return an empty widget inside the toolbar. It can be filled with buttons or anything else.
Definition at line 90 of file cxPopupToolbarWidget.cpp.
|
signal |
emitted on popup show/hide.
| bool cx::PopupToolbarWidget::popupIsVisible | ( | ) | const |
Return true if the popup is activated, i.e. the popup is pressed and the toolbar is visible.
Default: false.
Definition at line 95 of file cxPopupToolbarWidget.cpp.
|
inline |
Call after parent gui construction is complete - required because we want to draw the popup button on top of the parent layout. Hack!
Definition at line 78 of file cxPopupToolbarWidget.h.
| void cx::PopupToolbarWidget::setPopupVisible | ( | bool | val | ) |
Show or hide the popup.
Definition at line 101 of file cxPopupToolbarWidget.cpp.