summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Burke <patrick.burke@nokia.com>2011-11-16 17:29:23 +1000
committerQt by Nokia <qt-info@nokia.com>2011-11-23 06:07:58 +0100
commit0560c9093b4fcc83eacfee41d76c318f4ee46cd3 (patch)
treebec67f41c1ebe54fd5e098606a1b7661a5256758
parentb3974277a5c676d54e84b2d4a03de45c36fdd43f (diff)
ModelTweak: move buttons so they don't need to be moved when maximising
Change-Id: Ia59fb69e0ab244b67d2d1471fd07a3fb2eb96320 Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
-rw-r--r--util/qt3d/modeltweak/qml/ButtonBarPane.qml2
-rw-r--r--util/qt3d/modeltweak/qml/ModelTweak.qml12
2 files changed, 9 insertions, 5 deletions
diff --git a/util/qt3d/modeltweak/qml/ButtonBarPane.qml b/util/qt3d/modeltweak/qml/ButtonBarPane.qml
index ca792ca9..582ca304 100644
--- a/util/qt3d/modeltweak/qml/ButtonBarPane.qml
+++ b/util/qt3d/modeltweak/qml/ButtonBarPane.qml
@@ -3,7 +3,7 @@ import Qt3D 1.0
import ModelTweak 1.0
Flow {
- width: buttonWidth * 2 + 8
+ width: buttonWidth * 4 + spacing * 3
spacing: 8
property double buttonWidth: 80
diff --git a/util/qt3d/modeltweak/qml/ModelTweak.qml b/util/qt3d/modeltweak/qml/ModelTweak.qml
index 61340b34..9acd5239 100644
--- a/util/qt3d/modeltweak/qml/ModelTweak.qml
+++ b/util/qt3d/modeltweak/qml/ModelTweak.qml
@@ -236,10 +236,14 @@ Rectangle {
}
- ButtonBarPane {
- anchors {
- top: modelPropertiesPane.top;
- left: modelPropertiesPane.right; leftMargin: 16
+ Item {
+ width: parent.width / 2
+ anchors.bottom: meshName.top
+ anchors.bottomMargin: 8
+ height: buttonBarPane.height
+ ButtonBarPane {
+ id: buttonBarPane
+ anchors.centerIn: parent
}
}