aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2013-10-25 16:41:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-30 15:29:47 +0100
commit7af741357be05429e21965b7bbb487ff09aea94b (patch)
treeda97b612ad653a292b6fbb95ef910958bfdded28 /src/imports
parent8ff9b182b3ef09b128b3b59c905f91af188eb54d (diff)
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 <liang.qi@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/dialogs/DefaultFileDialog.qml9
1 files changed, 5 insertions, 4 deletions
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