aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/dialogs/systemdialogs/systemdialogs.qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@digia.com>2013-09-11 07:22:08 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-18 22:33:36 +0200
commitd375a65ce10d2854cf6a4643bc9ffb221df99494 (patch)
treef413ee872af2ec206151a12221bba9d9e49cd727 /examples/quick/dialogs/systemdialogs/systemdialogs.qml
parent93ecd34c323852812f8f74a4fe6d7dad8e43f35a (diff)
Add FontDialog to QtQuick.Dialogs
As with FileDialog, it tries QPA, then QFontDialog, and falls back to a QML implementation (which is also provided here) if neither type of native dialog is available. The update of plugins.qmltypes files will be in a separate commit. Task-number: QTBUG-31852 Done-with: Shawn Rutledge <shawn.rutledge@digia.com> Change-Id: I066ebbcf44c413af26020ddf8414252b99f5218b Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'examples/quick/dialogs/systemdialogs/systemdialogs.qml')
-rw-r--r--examples/quick/dialogs/systemdialogs/systemdialogs.qml8
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/quick/dialogs/systemdialogs/systemdialogs.qml b/examples/quick/dialogs/systemdialogs/systemdialogs.qml
index 6ef1f4b507..167df94c40 100644
--- a/examples/quick/dialogs/systemdialogs/systemdialogs.qml
+++ b/examples/quick/dialogs/systemdialogs/systemdialogs.qml
@@ -38,7 +38,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.2
import "../../shared"
TabSet {
@@ -56,4 +56,10 @@ TabSet {
anchors.fill: parent
color: "#e3e3e3" // to match tab.png
}
+
+ FontDialogs {
+ property string title: "Font Dialog"
+ anchors.fill: parent
+ color: "#e3e3e3" // to match tab.png
+ }
}