This pqPopOutWidget provides a mechanism to pop out its contained widget into a dialog return it to its prior location. More...
#include <pqPopOutWidget.h>
Inherits QWidget.
Public Member Functions | |
pqPopOutWidget (QWidget *widgetToPopOut, const QString &dialogTitle, QWidget *p=nullptr) | |
Constructs a pqPopOutWidget wrapping the given widget and using the given string as the title of the dialog when the widget is popped out. More... | |
~pqPopOutWidget () override | |
void | setPopOutButton (QPushButton *button) |
Sets the button that will control when the widget is popped out to the dialog. More... | |
Protected Slots | |
void | toggleWidgetLocation () |
Moves the widget to the other location. More... | |
void | moveWidgetToDialog () |
Moves the widget to the dialog and shows the dialog if the widget is not in the dialog. More... | |
void | moveWidgetBackToParent () |
Moves the widget from the dialog back to being a child of this widget. More... | |
This pqPopOutWidget provides a mechanism to pop out its contained widget into a dialog return it to its prior location.
As layout and contained widgets are managed internally, do not call its inherited functions that modify these.
Definition at line 21 of file pqPopOutWidget.h.
pqPopOutWidget::pqPopOutWidget | ( | QWidget * | widgetToPopOut, |
const QString & | dialogTitle, | ||
QWidget * | p = nullptr |
||
) |
Constructs a pqPopOutWidget wrapping the given widget and using the given string as the title of the dialog when the widget is popped out.
|
override |
void pqPopOutWidget::setPopOutButton | ( | QPushButton * | button | ) |
Sets the button that will control when the widget is popped out to the dialog.
This function connects the button to the appropriate slots and will cause its icon to be updated based on whether the dialog is visible or not.
|
protectedslot |
Moves the widget to the other location.
|
protectedslot |
Moves the widget to the dialog and shows the dialog if the widget is not in the dialog.
If the widget is already in the dialog, this function does nothing.
|
protectedslot |
Moves the widget from the dialog back to being a child of this widget.
This slot also hides the dialog if it is visible. This slot does nothing if the widget is not in the dialog and is automatically called when the dialog is closed.