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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user