35 Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
36 Q_PROPERTY(QQuickItem *contentItem READ contentItem CONSTANT FINAL)
37 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
38 Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
39 Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
40 Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
41 Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged FINAL)
42 Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL)
44 Q_PROPERTY(QQuickItem *menuBar READ menuBar WRITE setMenuBar NOTIFY menuBarChanged FINAL REVISION(2, 3))
46 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func(), QQuickPalette *palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged REVISION(2, 3))
48 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
49 qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged FINAL REVISION(6, 9))
50 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
51 qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged FINAL REVISION(6, 9))
52 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
53 qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged FINAL REVISION(6, 9))
54 Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func()->control,
55 qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged FINAL REVISION(6, 9))
57 Q_CLASSINFO(
"DeferredPropertyNames",
"background")
58 Q_CLASSINFO(
"DefaultProperty",
"contentData")
59 QML_NAMED_ELEMENT(ApplicationWindow)
60 QML_ADDED_IN_VERSION(2, 0)
61 QML_ATTACHED(QQuickApplicationWindowAttached)
64 explicit QQuickApplicationWindow(QWindow *parent =
nullptr);
65 ~QQuickApplicationWindow();
67 static QQuickApplicationWindowAttached *qmlAttachedProperties(QObject *object);
69 QQuickItem *background()
const;
70 void setBackground(QQuickItem *background);
72 QQuickItem *contentItem()
const;
74 QQuickItem *activeFocusControl()
const;
76 QQuickItem *header()
const;
77 void setHeader(QQuickItem *header);
79 QQuickItem *footer()
const;
80 void setFooter(QQuickItem *footer);
83 void setFont(
const QFont &font);
86 QLocale locale()
const;
87 void setLocale(
const QLocale &locale);
90 QQuickItem *menuBar()
const;
91 void setMenuBar(QQuickItem *menuBar);
94 void backgroundChanged();
95 void activeFocusControlChanged();
100 Q_REVISION(2, 3)
void menuBarChanged();
102 Q_REVISION(6, 9)
void topPaddingChanged();
103 Q_REVISION(6, 9)
void leftPaddingChanged();
104 Q_REVISION(6, 9)
void rightPaddingChanged();
105 Q_REVISION(6, 9)
void bottomPaddingChanged();
108 bool isComponentComplete()
const;
109 void classBegin() override;
110 void componentComplete() override;
111 void resizeEvent(QResizeEvent *event) override;
114 Q_DISABLE_COPY(QQuickApplicationWindow)
115 Q_DECLARE_PRIVATE(QQuickApplicationWindow)
117 Q_PRIVATE_SLOT(d_func(),
void _q_updateActiveFocus())
123 Q_PROPERTY(QQuickApplicationWindow *window READ window NOTIFY windowChanged FINAL)
124 Q_PROPERTY(QQuickItem *contentItem READ contentItem NOTIFY contentItemChanged FINAL)
125 Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
126 Q_PROPERTY(QQuickItem *header READ header NOTIFY headerChanged FINAL)
127 Q_PROPERTY(QQuickItem *footer READ footer NOTIFY footerChanged FINAL)
128 Q_PROPERTY(QQuickItem *menuBar READ menuBar NOTIFY menuBarChanged FINAL)
131 explicit QQuickApplicationWindowAttached(QObject *parent =
nullptr);
133 QQuickApplicationWindow *window()
const;
134 QQuickItem *contentItem()
const;
135 QQuickItem *activeFocusControl()
const;
136 QQuickItem *header()
const;
137 QQuickItem *footer()
const;
138 QQuickItem *menuBar()
const;
141 void windowChanged();
142 void contentItemChanged();
143 void activeFocusControlChanged();
144 void headerChanged();
145 void footerChanged();
147 void menuBarChanged();
150 Q_DISABLE_COPY(QQuickApplicationWindowAttached)
151 Q_DECLARE_PRIVATE(QQuickApplicationWindowAttached)