Add DockWidget::raise()

Mostly like QWindow::raise(), but if in a tab widget, makes the tab
widget current too.
This commit is contained in:
Sergio Martins
2020-03-24 22:06:13 +00:00
parent afb3edfd1d
commit acfd53672c
2 changed files with 22 additions and 0 deletions

View File

@@ -266,6 +266,15 @@ public:
/// @brief Equivalent to QWidget::show(), but it's optimized to reduce flickering on some platforms
void show();
/// @brief Brings the dock widget to the front.
///
/// This means:
/// - If the dock widget is tabbed with other dock widgets but its tab is not current, it's made current.
/// - If the dock widget is floating, QWindow::raise() is called.
///
/// This only applies if the dock widget is already open. If closed, does nothing.
void raise();
Q_SIGNALS:
///@brief signal emitted when the parent changed
void parentChanged();