Add DockWidgetBase::setFloatingWindowFlags(flags)

So you can specify, per floating window, which flags you want
This commit is contained in:
Sergio Martins
2022-09-16 15:33:11 +01:00
parent 0bef7bc0e9
commit 757e57559a
4 changed files with 38 additions and 1 deletions

View File

@@ -460,6 +460,15 @@ public:
/// This only applies when using MainWindowOption_HasCentralWidget
bool isPersistentCentralDockWidget() const;
/// @brief Sets the desired floating window flags, in case the defaults aren't desired.
/// By default KDDW will use the flags specified in KDDockWidgets::Config to influence
/// many aspects regarding windows (minimize,maximize support for example).
/// You can use this function to override those "global flags" and specify per-dock widget
/// flags. Be sure to not call this before the floating window has already been created.
/// It's suggested to call it before the dock widget is shown.
void setFloatingWindowFlags(FloatingWindowFlags);
KDDockWidgets::FloatingWindowFlags floatingWindowFlags() const;
Q_SIGNALS:
#ifdef KDDOCKWIDGETS_QTWIDGETS
///@brief signal emitted when the parent changed