33 Q_PROPERTY(QQuickItem *titleBarQmlItem READ titleBarQmlItem WRITE setTitleBarQmlItem NOTIFY
34 titleBarQmlItemChanged)
35 Q_PROPERTY(QQuickItem *titleBarMouseArea READ titleBarMouseArea CONSTANT)
36 Q_PROPERTY(
QString title READ title NOTIFY titleChanged)
37 Q_PROPERTY(
bool hasIcon READ hasIcon NOTIFY iconChanged)
38 Q_PROPERTY(
bool closeButtonEnabled READ closeButtonEnabled WRITE setCloseButtonEnabled NOTIFY
39 closeButtonEnabledChanged)
40 Q_PROPERTY(
bool floatButtonVisible READ floatButtonVisible WRITE setFloatButtonVisible NOTIFY
41 floatButtonVisibleChanged)
42 Q_PROPERTY(
bool maximizeButtonVisible READ maximizeButtonVisible NOTIFY
43 maximizeButtonVisibleChanged)
44 Q_PROPERTY(
bool minimizeButtonVisible READ minimizeButtonVisible NOTIFY
45 minimizeButtonVisibleChanged)
46 Q_PROPERTY(
QString floatButtonToolTip READ floatButtonToolTip NOTIFY floatButtonToolTipChanged)
47 Q_PROPERTY(
bool isFocused READ isFocused NOTIFY isFocusedChanged)
48 Q_PROPERTY(
bool maximizeUsesRestoreIcon READ maximizeUsesRestoreIcon NOTIFY maximizeButtonVisibleChanged)
56#ifdef DOCKS_DEVELOPER_MODE
58 bool isCloseButtonEnabled()
const override;
59 bool isCloseButtonVisible()
const override;
60 bool isFloatButtonVisible()
const override;
63 QQuickItem *titleBarQmlItem()
const;
64 QQuickItem *titleBarMouseArea()
const;
65 void setTitleBarQmlItem(QQuickItem *);
68 bool isFocused()
const;
69 bool floatButtonVisible()
const;
70 bool minimizeButtonVisible()
const;
71 bool maximizeButtonVisible()
const;
72 bool maximizeUsesRestoreIcon()
const;
73 bool closeButtonEnabled()
const;
74 QString floatButtonToolTip()
const;
77 void setCloseButtonEnabled(
bool);
78 void setFloatButtonVisible(
bool);
80 Q_INVOKABLE
bool onDoubleClicked();
81 Q_INVOKABLE
void onCloseClicked();
82 Q_INVOKABLE
void onFloatClicked();
84 Q_INVOKABLE
void onMinimizeClicked();
85 Q_INVOKABLE
void onAutoHideClicked();
86 Q_INVOKABLE
bool isFloating()
const;
87 Q_INVOKABLE
bool isMaximized()
const override;
90 Q_INVOKABLE
void toggleMaximized();
91 Q_INVOKABLE
void onMaximizeClicked();
108 void init()
override;
109 bool event(
QEvent *)
override;
112 QQuickItem *floatButton()
const;
113 QQuickItem *closeButton()
const;