36 Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
37 Q_PROPERTY(QQuickItem *contentItem READ contentItem CONSTANT FINAL)
38 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
39 Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
40 Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
41 Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
42 Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged FINAL)
43 Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL)
45 Q_PROPERTY(QQuickItem *menuBar READ menuBar WRITE setMenuBar NOTIFY menuBarChanged FINAL REVISION(2, 3))
47 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func(), QQuickPalette *palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged REVISION(2, 3))
49 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
50 qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged FINAL REVISION(6, 9))
51 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
52 qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged FINAL REVISION(6, 9))
53 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
54 qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged FINAL REVISION(6, 9))
55 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
56 qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged FINAL REVISION(6, 9))
58 Q_CLASSINFO(
"DeferredPropertyNames",
"background")
59 Q_CLASSINFO(
"DefaultProperty",
"contentData")
60 QML_NAMED_ELEMENT(ApplicationWindow)
61 QML_ADDED_IN_VERSION(2, 0)
62 QML_ATTACHED(QQuickApplicationWindowAttached)
65 explicit QQuickApplicationWindow(QWindow *parent =
nullptr);
66 ~QQuickApplicationWindow();
68 static QQuickApplicationWindowAttached *qmlAttachedProperties(QObject *object);
70 QQuickItem *background()
const;
71 void setBackground(QQuickItem *background);
73 QQuickItem *contentItem()
const;
75 QQuickItem *activeFocusControl()
const;
77 QQuickItem *header()
const;
78 void setHeader(QQuickItem *header);
80 QQuickItem *footer()
const;
81 void setFooter(QQuickItem *footer);
84 void setFont(
const QFont &font);
87 QLocale locale()
const;
88 void setLocale(
const QLocale &locale);
91 QQuickItem *menuBar()
const;
92 void setMenuBar(QQuickItem *menuBar);
95 void backgroundChanged();
96 void activeFocusControlChanged();
100 void localeChanged();
101 Q_REVISION(2, 3)
void menuBarChanged();
103 Q_REVISION(6, 9)
void topPaddingChanged();
104 Q_REVISION(6, 9)
void leftPaddingChanged();
105 Q_REVISION(6, 9)
void rightPaddingChanged();
106 Q_REVISION(6, 9)
void bottomPaddingChanged();
109 bool isComponentComplete()
const;
110 void classBegin() override;
111 void componentComplete() override;
112 void resizeEvent(QResizeEvent *event) override;
115 Q_DISABLE_COPY(QQuickApplicationWindow)
116 Q_DECLARE_PRIVATE(QQuickApplicationWindow)
118 Q_PRIVATE_SLOT(d_func(),
void _q_updateActiveFocus())
124 Q_PROPERTY(QQuickApplicationWindow *window READ window NOTIFY windowChanged FINAL)
125 Q_PROPERTY(QQuickItem *contentItem READ contentItem NOTIFY contentItemChanged FINAL)
126 Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
127 Q_PROPERTY(QQuickItem *header READ header NOTIFY headerChanged FINAL)
128 Q_PROPERTY(QQuickItem *footer READ footer NOTIFY footerChanged FINAL)
129 Q_PROPERTY(QQuickItem *menuBar READ menuBar NOTIFY menuBarChanged FINAL)
132 explicit QQuickApplicationWindowAttached(QObject *parent =
nullptr);
134 QQuickApplicationWindow *window()
const;
135 QQuickItem *contentItem()
const;
136 QQuickItem *activeFocusControl()
const;
137 QQuickItem *header()
const;
138 QQuickItem *footer()
const;
139 QQuickItem *menuBar()
const;
142 void windowChanged();
143 void contentItemChanged();
144 void activeFocusControlChanged();
145 void headerChanged();
146 void footerChanged();
148 void menuBarChanged();
151 Q_DISABLE_COPY(QQuickApplicationWindowAttached)
152 Q_DECLARE_PRIVATE(QQuickApplicationWindowAttached)