summaryrefslogtreecommitdiffstats
path: root/examples/quick/dialogs/systemdialogs/FontDialogs.qml
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2014-10-16 17:28:09 +0200
committerShawn Rutledge <shawn.rutledge@digia.com>2014-10-23 11:13:08 +0200
commit511a9b521f5c025bb513ac8eecaeff5d41bba7e8 (patch)
tree09e74003ec5e11b1da5567031efd8c65f5518e96 /examples/quick/dialogs/systemdialogs/FontDialogs.qml
parent11ff483c564b8a2f5b3ef5e28230fbfc742a2cd2 (diff)
QtQuick.Dialogs examples: use controls and layouts; visual tweaks
Make tab and button labels shorter so that they fit even on very-small- screen devices (like iOS). Make the content of some tabs scrollable. Background color of the Font tab matches the others. Use RowLayout to make baseline alignment of checkboxes and associated text fields possible. Use ColumnLayout because it works better inside a ScrollView. Use Label instead of Text so that the renderType is consistent. Change-Id: Ie2d07153532f35d108a0b6ad0bb4f10326f79d24 Task-number: QTBUG-41999 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
Diffstat (limited to 'examples/quick/dialogs/systemdialogs/FontDialogs.qml')
-rw-r--r--examples/quick/dialogs/systemdialogs/FontDialogs.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/quick/dialogs/systemdialogs/FontDialogs.qml b/examples/quick/dialogs/systemdialogs/FontDialogs.qml
index dc8f245bc..3b6f86f7c 100644
--- a/examples/quick/dialogs/systemdialogs/FontDialogs.qml
+++ b/examples/quick/dialogs/systemdialogs/FontDialogs.qml
@@ -42,12 +42,11 @@ import QtQuick 2.2
import QtQuick.Controls 1.2
import QtQuick.Dialogs 1.1
-Rectangle {
+Item {
width: 320
height: 360
SystemPalette { id: palette }
clip: true
- color: palette.window
FontDialog {
id: fontDialog
@@ -70,7 +69,7 @@ Rectangle {
anchors.fill: parent
anchors.margins: 12
spacing: 8
- Text {
+ Label {
font.bold: true
text: "Font dialog properties:"
}
@@ -105,12 +104,11 @@ Rectangle {
text: "Visible"
Binding on checked { value: fontDialog.visible }
}
- Text {
+ Label {
text: "Current font:"
}
- Text {
+ Label {
id: fontLabel
- color: palette.windowText
text: "<b>" + fontDialog.font.family + " - " + fontDialog.font.pointSize + "</b>"
MouseArea {
anchors.fill: parent