From 7af741357be05429e21965b7bbb487ff09aea94b Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 25 Oct 2013 16:41:06 +0200 Subject: QtQuick.Dialogs DefaultFileDialog: visual improvements Make spacing of controls consistent with the other dialogs. It was too conservative for high-resolution displays anyway. Change-Id: I095d0c8f136b6692cc9c4ac01db748dbef205867 Reviewed-by: Liang Qi --- src/imports/dialogs/DefaultFileDialog.qml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/imports') diff --git a/src/imports/dialogs/DefaultFileDialog.qml b/src/imports/dialogs/DefaultFileDialog.qml index 6ed6697f5a..8eb76966c7 100644 --- a/src/imports/dialogs/DefaultFileDialog.qml +++ b/src/imports/dialogs/DefaultFileDialog.qml @@ -127,7 +127,8 @@ AbstractFileDialog { implicitHeight: Math.min(maxSize, Screen.pixelDensity * 80) color: palette.window focus: root.visible && !currentPathField.visible - + property real spacing: 6 + property real outerSpacing: 12 SystemPalette { id: palette } Component { @@ -312,7 +313,7 @@ AbstractFileDialog { Text { id: currentPathText anchors.left: parent.left; anchors.right: parent.right; anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: textX; anchors.rightMargin: 4 + anchors.leftMargin: textX; anchors.rightMargin: content.spacing text: root.urlToPath(view.model.folder) color: palette.text elide: Text.ElideLeft; horizontalAlignment: Text.AlignRight; verticalAlignment: Text.AlignVCenter @@ -324,7 +325,7 @@ AbstractFileDialog { TextField { id: currentPathField anchors.left: parent.left; anchors.right: parent.right; anchors.verticalCenter: parent.verticalCenter - anchors.leftMargin: textX; anchors.rightMargin: 4 + anchors.leftMargin: textX; anchors.rightMargin: content.spacing visible: false focus: visible onAccepted: { @@ -352,7 +353,7 @@ AbstractFileDialog { anchors.right: parent.right anchors.rightMargin: spacing anchors.verticalCenter: parent.verticalCenter - spacing: 4 + spacing: content.spacing TextField { id: filterField text: root.selectedNameFilter -- cgit v1.2.3