diff options
author | Kimmo Ollila <kimmo.ollila@digia.com> | 2013-06-07 14:39:55 +0300 |
---|---|---|
committer | Lasse Räihä <lasse.raiha@digia.com> | 2013-06-07 15:01:05 +0300 |
commit | 3c007a004b91d49515051a530d7cef69dc7a0cf2 (patch) | |
tree | 0ae826f06995151150546454eacd928b237da756 /QtDemo | |
parent | cb64a0d23cbbefbd4bb53c239b6f2d3b5653128f (diff) |
Minor scaling fix to QuitDialog
Change-Id: I30037dd9eca2854b03e0386108cdf12d5c02bf30
Reviewed-by: Lasse Räihä <lasse.raiha@digia.com>
Diffstat (limited to 'QtDemo')
-rw-r--r-- | QtDemo/qml/QtDemo/QuitDialog.qml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/QtDemo/qml/QtDemo/QuitDialog.qml b/QtDemo/qml/QtDemo/QuitDialog.qml index 19c484e..d14fa36 100644 --- a/QtDemo/qml/QtDemo/QuitDialog.qml +++ b/QtDemo/qml/QtDemo/QuitDialog.qml @@ -15,7 +15,7 @@ Rectangle { Rectangle { id: dialog anchors.centerIn: parent - width: parent.width * 0.4 + width: dialogText.paintedWidth * 1.1 height: parent.height * 0.3 property double dialogMargin: height * 0.05 @@ -33,6 +33,7 @@ Rectangle { height: dialog.height * 0.6 Text { + id: dialogText anchors.centerIn: parent verticalAlignment: Text.AlignVCenter text: qsTr("Are you sure you want to quit?") |