[Pkg-privacy-commits] [tails-installer] 125/210: Better handling of window resizing

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:36 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.

commit 03f81a34b0ef4610bc9fe44e0d52fc64995a72d2
Author: Martin Briza <mbriza at redhat.com>
Date:   Tue Jul 28 16:05:55 2015 +0200

    Better handling of window resizing
---
 liveusb/components/ImageDetails.qml | 6 +++---
 liveusb/components/ImageList.qml    | 8 ++++----
 liveusb/liveusb.qml                 | 1 +
 3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/liveusb/components/ImageDetails.qml b/liveusb/components/ImageDetails.qml
index 29d3ce5..cf5406e 100644
--- a/liveusb/components/ImageDetails.qml
+++ b/liveusb/components/ImageDetails.qml
@@ -22,7 +22,7 @@ Item {
             top: parent.top
             left: parent.left
             right: parent.right
-            leftMargin: 64
+            leftMargin: mainWindow.margin
             rightMargin: anchors.leftMargin
         }
         height: 64
@@ -67,8 +67,8 @@ Item {
 
         contentItem: Item {
             y: 72
-            x: 64
-            width: root.width - 2 * 64
+            x: mainWindow.margin
+            width: root.width - 2 * mainWindow.margin
             height: childrenRect.height + 64 + 32
 
             ColumnLayout {
diff --git a/liveusb/components/ImageList.qml b/liveusb/components/ImageList.qml
index d737386..754ce67 100644
--- a/liveusb/components/ImageList.qml
+++ b/liveusb/components/ImageList.qml
@@ -29,7 +29,7 @@ Item {
             left: parent.left
             right: archSelect.left
             topMargin: 12
-            leftMargin: 64
+            leftMargin: mainWindow.margin
             rightMargin: 4
         }
         height: 36
@@ -105,7 +105,7 @@ Item {
         anchors {
             right: parent.right
             top: parent.top
-            rightMargin: 64
+            rightMargin: mainWindow.margin
             topMargin: 12
         }
         height: 36
@@ -154,7 +154,7 @@ Item {
         anchors {
             left: parent.left
             right: parent.right
-            rightMargin: 64
+            rightMargin: mainWindow.margin
             leftMargin: anchors.rightMargin
         }
         border {
@@ -171,7 +171,7 @@ Item {
             clip: true
             anchors {
                 fill: parent
-                leftMargin: 64
+                leftMargin: mainWindow.margin
                 rightMargin: anchors.leftMargin - (fullList.width - fullList.viewport.width)
                 topMargin: whiteBackground.y
             }
diff --git a/liveusb/liveusb.qml b/liveusb/liveusb.qml
index 7dddbc2..dade64a 100644
--- a/liveusb/liveusb.qml
+++ b/liveusb/liveusb.qml
@@ -20,6 +20,7 @@ ApplicationWindow {
     }
 
     property bool canGoBack: false
+    property real margin: 64 + (width - 800) / 4
 
     Rectangle {
         anchors.fill: parent

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git



More information about the Pkg-privacy-commits mailing list