Floating windows now support a minimize button

Introduced Flag_TitleBarHasMinimizeButton for it.
It implies Flag_DontUseUtilityFloatingWindows too, since Qt::Tool
don't appear in the task bar.

example: kddockwidgets_example -k
This commit is contained in:
Sergio Martins
2020-09-17 21:33:38 +01:00
parent deec6ffa31
commit e92ef472b3
6 changed files with 51 additions and 4 deletions

View File

@@ -51,6 +51,7 @@ protected:
void updateFloatButton() override;
void updateCloseButton() override;
void updateMaximizeButton() override;
void updateMinimizeButton() override;
// The following are needed for the unit-tests
bool isCloseButtonVisible() const override;
@@ -68,6 +69,7 @@ private:
QAbstractButton *m_closeButton = nullptr;
QAbstractButton *m_floatButton = nullptr;
QAbstractButton *m_maximizeButton = nullptr;
QAbstractButton *m_minimizeButton = nullptr;
QLabel *m_dockWidgetIcon = nullptr;
};