19 Q_PROPERTY( Decorations decorations READ decorations
20 WRITE setDecorations RESET resetDecorations NOTIFY decorationsChanged )
22 Q_PROPERTY( QString windowTitle READ windowTitle
23 WRITE setWindowTitle NOTIFY windowTitleChanged )
25 Q_PROPERTY(
QskTextOptions windowTitleTextOptions READ windowTitleTextOptions
26 WRITE setWindowTitleTextOptions NOTIFY windowTitleTextOptionsChanged )
28 Q_PROPERTY( QUrl windowIconSource READ windowIconSource
29 WRITE setWindowIconSource NOTIFY windowIconSourceChanged )
31 Q_PROPERTY(
QskGraphic windowIcon READ windowIcon
32 WRITE setWindowIcon NOTIFY windowIconChanged FINAL )
47 MinimizeButton = 1 << 3,
48 MaximizeButton = 1 << 4,
54 Q_DECLARE_FLAGS( Decorations, Decoration )
56 QSK_SUBCONTROLS( Panel, TitleBarPanel, TitleBarSymbol, TitleBarText )
61 void setDecorations( Decorations );
62 void resetDecorations();
63 Decorations decorations()
const;
65 void setDecoration( Decoration,
bool on =
true );
66 bool hasDecoration( Decoration )
const;
71 void setWindowTitle(
const QString& );
72 QString windowTitle()
const;
74 void setWindowIconSource(
const QString& );
75 void setWindowIconSource(
const QUrl& );
76 QUrl windowIconSource()
const;
81 bool hasWindowIcon()
const;
83 QRectF titleBarRect()
const;
89 void decorationsChanged( Decorations );
90 void windowTitleChanged();
91 void windowTitleTextOptionsChanged();
92 void windowIconChanged();
93 void windowIconSourceChanged();
96 bool event( QEvent* )
override;
98 void updateLayout()
override;
99 void updateResources()
override;
101 QSizeF layoutSizeHint( Qt::SizeHint,
const QSizeF& )
const override;
103 void itemChange( QQuickItem::ItemChange,
104 const QQuickItem::ItemChangeData& )
override;
108 std::unique_ptr< PrivateData > m_data;