summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-08-22 14:19:24 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-08-23 07:52:29 +0000
commitd2300c0c93339861ef5b701a2df5ca6751b97baf (patch)
tree7a72eecaf64d79db2c973d9eca177181cdc79c68
parent90e29b49bbf19cba3476219e3b4528837c52b2af (diff)
Remove anchors from chooser dialogs
Behavior of anchors under Layouts is undefined, so replaced anchor functionality with corresponding Layout properties. Made margins bit more sensible, too. Task-number: QT3DS-2082 Change-Id: I653853cdc6bef86e527d4a4d3c7700062ae2db0f Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/FileChooser.qml7
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/ImageChooser.qml7
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/MeshChooser.qml7
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/TextureChooser.qml7
4 files changed, 12 insertions, 16 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/FileChooser.qml b/src/Authoring/Studio/Palettes/Inspector/FileChooser.qml
index b578417f..2eff9578 100644
--- a/src/Authoring/Studio/Palettes/Inspector/FileChooser.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/FileChooser.qml
@@ -44,10 +44,9 @@ Rectangle {
ListView {
id: listView
- anchors {
- fill: parent
- leftMargin: 8
- }
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.margins: 4
boundsBehavior: Flickable.StopAtBounds
spacing: 4
diff --git a/src/Authoring/Studio/Palettes/Inspector/ImageChooser.qml b/src/Authoring/Studio/Palettes/Inspector/ImageChooser.qml
index e6668a17..8320e3a0 100644
--- a/src/Authoring/Studio/Palettes/Inspector/ImageChooser.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/ImageChooser.qml
@@ -44,10 +44,9 @@ Rectangle {
ListView {
id: listView
- anchors {
- fill: parent
- leftMargin: 8
- }
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.margins: 4
boundsBehavior: Flickable.StopAtBounds
spacing: 4
diff --git a/src/Authoring/Studio/Palettes/Inspector/MeshChooser.qml b/src/Authoring/Studio/Palettes/Inspector/MeshChooser.qml
index 331051bc..c9a01eb3 100644
--- a/src/Authoring/Studio/Palettes/Inspector/MeshChooser.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/MeshChooser.qml
@@ -42,10 +42,9 @@ Rectangle {
ListView {
id: listView
- anchors {
- fill: parent
- leftMargin: 8
- }
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.margins: 4
boundsBehavior: Flickable.StopAtBounds
spacing: 4
diff --git a/src/Authoring/Studio/Palettes/Inspector/TextureChooser.qml b/src/Authoring/Studio/Palettes/Inspector/TextureChooser.qml
index 20754b5b..3c4aa64c 100644
--- a/src/Authoring/Studio/Palettes/Inspector/TextureChooser.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/TextureChooser.qml
@@ -44,10 +44,9 @@ Rectangle {
ListView {
id: listView
- anchors {
- fill: parent
- leftMargin: 8
- }
+ Layout.fillWidth: true
+ Layout.fillHeight: true
+ Layout.margins: 4
boundsBehavior: Flickable.StopAtBounds
spacing: 4