diff options
Diffstat (limited to 'src/templates/qquickapplicationwindow_p.h')
-rw-r--r-- | src/templates/qquickapplicationwindow_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/templates/qquickapplicationwindow_p.h b/src/templates/qquickapplicationwindow_p.h index c5b0dc42..a4c64e19 100644 --- a/src/templates/qquickapplicationwindow_p.h +++ b/src/templates/qquickapplicationwindow_p.h @@ -50,6 +50,7 @@ #include <QtQuick/private/qquickwindowmodule_p.h> #include <QtLabsTemplates/private/qtlabstemplatesglobal_p.h> +#include <QtGui/qfont.h> QT_BEGIN_NAMESPACE @@ -65,6 +66,7 @@ class Q_LABSTEMPLATES_EXPORT QQuickApplicationWindow : public QQuickWindowQmlImp Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL) Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL) Q_PROPERTY(QQuickItem *overlay READ overlay CONSTANT FINAL) + Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged) Q_CLASSINFO("DefaultProperty", "data") public: @@ -82,11 +84,16 @@ public: QQuickItem *overlay() const; + QFont font() const; + void setFont(const QFont &); + void resetFont(); + static QQuickApplicationWindowAttached *qmlAttachedProperties(QObject *object); Q_SIGNALS: void headerChanged(); void footerChanged(); + void fontChanged(); protected: bool isComponentComplete() const; |