KTutorial  0.5.1
Public Member Functions
ktutorial::view::WindowOnTopEnforcer Class Reference

Utility class to avoid windows being blocked by modal widgets. More...

#include <WindowOnTopEnforcer.h>

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
widgetThe widget to keep on top.

Definition at line 32 of file WindowOnTopEnforcer.cpp.


Member Function Documentation

Sets the base window to spy for its children dialogs.

Parameters:
baseWindowThe window to spy.

Definition at line 40 of file WindowOnTopEnforcer.cpp.

References ktutorial::common::WindowVisibilitySpy::addWidgetToSpy().

Referenced by ktutorial::view::StepWidget::setMainApplicationWindow().


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