Anchor our buttons together instead of anchoring to the parent
authorMohammed Sameer <msameer@foolab.org>
Sat, 1 Sep 2012 13:47:06 +0000 (16:47 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sat, 1 Sep 2012 13:47:06 +0000 (16:47 +0300)
qml/ImagePage.qml

index 157ff33..9376f4d 100644 (file)
@@ -41,18 +41,18 @@ CameraPage {
         SceneButton {
                 id: scene
                 visible: capture.visible
-                anchors.top: parent.top
+                anchors.top: flash.bottom
                 anchors.left: parent.left
-                anchors.topMargin: 20 + 64 + 10
+                anchors.topMargin: 10
                 anchors.leftMargin: 20
         }
 
         Selector {
                 id: evComp
                 visible: capture.visible
-                anchors.top: parent.top
+                anchors.top: scene.bottom
                 anchors.left: parent.left
-                anchors.topMargin: 20 + 64 + 10 + 64 + 10
+                anchors.topMargin: 10
                 anchors.leftMargin: 20
                 timerConstraints: slider.pressed
                 widget: Slider {