Thread (16 messages) flat view 16 messages, 4 authors, 2016-06-15
DORMANTno replies

[PATCH] qgit4: Set a 5:1 stretch ratio on the left and right halves of the patch viewer

From: Andy Parkins <hidden>
Date: 2016-06-15 22:42:53
Subsystem: the rest · Maintainer: Linus Torvalds

This stops the file list taking up half the screen by default.  The
exact ratio is probably not to important, as long as it's not 1:1.

Signed-off-by: Andy Parkins <redacted>
---
 src/patchview.ui |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/patchview.ui b/src/patchview.ui
index bd723e8..4537dd7 100644
--- a/src/patchview.ui
+++ b/src/patchview.ui
@@ -132,6 +132,14 @@
         <enum>Qt::Horizontal</enum>
        </property>
        <widget class="QSplitter" name="splitter" >
+        <property name="sizePolicy" >
+         <sizepolicy>
+          <hsizetype>5</hsizetype>
+          <vsizetype>7</vsizetype>
+          <horstretch>5</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="orientation" >
          <enum>Qt::Vertical</enum>
         </property>
@@ -156,6 +164,14 @@
         </widget>
        </widget>
        <widget class="FileList" name="fileList" >
+        <property name="sizePolicy" >
+         <sizepolicy>
+          <hsizetype>13</hsizetype>
+          <vsizetype>13</vsizetype>
+          <horstretch>1</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="contextMenuPolicy" >
          <enum>Qt::CustomContextMenu</enum>
         </property>
-- 
1.5.0.rc1.gf4b6c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help