KTutorial
0.5.1
|
Utility class to avoid windows being blocked by modal widgets. More...
#include <WindowOnTopEnforcer.h>
Public Member Functions | |
WindowOnTopEnforcer (QWidget *widget) | |
Creates a new WindowOnTopEnforcer with the widget to keep on top. | |
void | setBaseWindow (QWidget *baseWindow) |
Sets the base window to spy for its children dialogs. |
Utility class to avoid windows being blocked by modal widgets.
When a modal widget is shown, the widget to keep on top is reparented to the shown widget (if necessary). When the modal widget is hidden, the widget is reparented to its first previous ancestor still visible.
Definition at line 40 of file WindowOnTopEnforcer.h.
ktutorial::view::WindowOnTopEnforcer::WindowOnTopEnforcer | ( | QWidget * | widget | ) | [explicit] |
Creates a new WindowOnTopEnforcer with the widget to keep on top.
The widget to keep on top is set as the parent of the WindowOnTopEnforcer.
widget | The widget to keep on top. |
Definition at line 32 of file WindowOnTopEnforcer.cpp.
void ktutorial::view::WindowOnTopEnforcer::setBaseWindow | ( | QWidget * | baseWindow | ) |
Sets the base window to spy for its children dialogs.
baseWindow | The window to spy. |
Definition at line 40 of file WindowOnTopEnforcer.cpp.
References ktutorial::common::WindowVisibilitySpy::addWidgetToSpy().
Referenced by ktutorial::view::StepWidget::setMainApplicationWindow().