Skip to contentSkip to conversation

Some UI Improvements

PATCH In review Peter Oberndorfer 2 participants 10 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover Some UI Improvements

Hi,
the initial reason for this patches is that here on my system qgit4 looks like this
http://img77.imageshack.us/my.php?image=qgit4strangewindowgi0.png
which is a bit suboptimal for viewing patches :-)
this is on a standard qt 4.3 from gentoo

While i was there i removed the same problem in the custom action editor and removed some unneed empty space

Actually locally i removed even more empty space, like around the main tab view and inside the main tab view.
If anyone wants me to remove that too, i would be happy to send more patches

[QGIT4 PATCH 1/6] update patchview.ui with new qt designer
When i edit the .ui files with the QT designer it updates some unrelated parts. Because of this i split the update into a separate patch so the real changes are obvious. Feel free to collapse them if you want

[QGIT4 PATCH 2/6] change size policy of the patch viewer to expanding
this fixes the problem from the screenshot above

[QGIT4 PATCH 3/6] update patchview.ui with new qt designer
same reason as patch 1

[QGIT4 PATCH 4/6] change size policy of splitter which contains the list and the textbox
fix same problem in custom action editor

[QGIT4 PATCH 5/6] remove empty space below "diff to" header in patch view [QGIT4 PATCH 6/6] remove empty space below button bar in file view
these remove some more empty space which i personally find useless Apply if you like them

If you want i can provide more screenshots of how patches change appearance.

Greetings Peter

#1 lore raw

PATCH 1/6 update patchview.ui with new qt designer

---
 src/patchview.ui |   57 ++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 39 insertions(+), 18 deletions(-)
src/patchview.ui +39 -18
index 1539242..a599e09 100644
@@ -13,28 +13,55 @@
    <string>Patch</string>
   </property>
   <layout class="QHBoxLayout" >
-   <property name="margin" >
+   <property name="spacing" >
     <number>0</number>
    </property>
-   <property name="spacing" >
+   <property name="leftMargin" >
+    <number>0</number>
+   </property>
+   <property name="topMargin" >
+    <number>0</number>
+   </property>
+   <property name="rightMargin" >
+    <number>0</number>
+   </property>
+   <property name="bottomMargin" >
     <number>0</number>
    </property>
    <item>
     <layout class="QVBoxLayout" >
-     <property name="margin" >
-      <number>0</number>
-     </property>
      <property name="spacing" >
       <number>6</number>
      </property>
+     <property name="leftMargin" >
+      <number>0</number>
+     </property>
+     <property name="topMargin" >
+      <number>0</number>
+     </property>
+     <property name="rightMargin" >
+      <number>0</number>
+     </property>
+     <property name="bottomMargin" >
+      <number>0</number>
+     </property>
      <item>
       <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>2</number>
-       </property>
        <property name="spacing" >
         <number>6</number>
        </property>
+       <property name="leftMargin" >
+        <number>2</number>
+       </property>
+       <property name="topMargin" >
+        <number>2</number>
+       </property>
+       <property name="rightMargin" >
+        <number>2</number>
+       </property>
+       <property name="bottomMargin" >
+        <number>2</number>
+       </property>
        <item>
         <widget class="QLabel" name="textLabel" >
          <property name="text" >
@@ -112,9 +139,7 @@
        <item>
         <widget class="QLineEdit" name="lineEditDiff" >
          <property name="sizePolicy" >
-          <sizepolicy>
-           <hsizetype>7</hsizetype>
-           <vsizetype>0</vsizetype>
+          <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
            <horstretch>1</horstretch>
            <verstretch>0</verstretch>
           </sizepolicy>
@@ -143,9 +168,7 @@
        </property>
        <widget class="QSplitter" name="splitter" >
         <property name="sizePolicy" >
-         <sizepolicy>
-          <hsizetype>5</hsizetype>
-          <vsizetype>7</vsizetype>
+         <sizepolicy vsizetype="Expanding" hsizetype="Preferred" >
           <horstretch>5</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
@@ -169,15 +192,13 @@
           <bool>true</bool>
          </property>
          <property name="textInteractionFlags" >
-          <enum>Qt::TextSelectableByMouse</enum>
+          <set>Qt::TextSelectableByMouse</set>
          </property>
         </widget>
        </widget>
        <widget class="FileList" name="fileList" >
         <property name="sizePolicy" >
-         <sizepolicy>
-          <hsizetype>13</hsizetype>
-          <vsizetype>13</vsizetype>
+         <sizepolicy vsizetype="Ignored" hsizetype="Ignored" >
           <horstretch>1</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
Signature · 1 line
1.5.3.rc2.30.g1fe72
#2 lore raw

PATCH 2/6 change size policy of the patch viewer to expanding

In reply to Peter Oberndorfer

else the diff to header will take up half of the vertical space

---
 src/patchview.ui |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
src/patchview.ui +6 -0
index a599e09..6dbf53c 100644
@@ -163,6 +163,12 @@
      </item>
      <item>
       <widget class="QSplitter" name="splitter_2" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
Signature · 1 line
1.5.3.rc2.30.g1fe72
#3 lore raw

PATCH 3/6 update patchview.ui with new qt designer

In reply to Peter Oberndorfer
---
 src/customaction.ui |  154 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 121 insertions(+), 33 deletions(-)
src/customaction.ui +121 -33
index fc2ceba..59004ca 100644
@@ -16,26 +16,42 @@
    <iconset resource="icons.qrc" >:/icons/resources/bookmark.png</iconset>
   </property>
   <layout class="QHBoxLayout" >
-   <property name="margin" >
-    <number>5</number>
-   </property>
    <property name="spacing" >
     <number>0</number>
    </property>
+   <property name="leftMargin" >
+    <number>5</number>
+   </property>
+   <property name="topMargin" >
+    <number>5</number>
+   </property>
+   <property name="rightMargin" >
+    <number>5</number>
+   </property>
+   <property name="bottomMargin" >
+    <number>5</number>
+   </property>
    <item>
     <layout class="QVBoxLayout" >
-     <property name="margin" >
-      <number>0</number>
-     </property>
      <property name="spacing" >
       <number>6</number>
      </property>
+     <property name="leftMargin" >
+      <number>0</number>
+     </property>
+     <property name="topMargin" >
+      <number>0</number>
+     </property>
+     <property name="rightMargin" >
+      <number>0</number>
+     </property>
+     <property name="bottomMargin" >
+      <number>0</number>
+     </property>
      <item>
       <widget class="QFrame" name="frame" >
        <property name="sizePolicy" >
-        <sizepolicy>
-         <hsizetype>5</hsizetype>
-         <vsizetype>0</vsizetype>
+        <sizepolicy vsizetype="Fixed" hsizetype="Preferred" >
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
@@ -47,20 +63,38 @@
         <enum>QFrame::Raised</enum>
        </property>
        <layout class="QHBoxLayout" >
-        <property name="margin" >
-         <number>9</number>
-        </property>
         <property name="spacing" >
          <number>6</number>
         </property>
+        <property name="leftMargin" >
+         <number>9</number>
+        </property>
+        <property name="topMargin" >
+         <number>9</number>
+        </property>
+        <property name="rightMargin" >
+         <number>9</number>
+        </property>
+        <property name="bottomMargin" >
+         <number>9</number>
+        </property>
         <item>
          <layout class="QHBoxLayout" >
-          <property name="margin" >
-           <number>0</number>
-          </property>
           <property name="spacing" >
            <number>15</number>
           </property>
+          <property name="leftMargin" >
+           <number>0</number>
+          </property>
+          <property name="topMargin" >
+           <number>0</number>
+          </property>
+          <property name="rightMargin" >
+           <number>0</number>
+          </property>
+          <property name="bottomMargin" >
+           <number>0</number>
+          </property>
           <item>
            <widget class="QPushButton" name="pushButtonNew" >
             <property name="text" >
@@ -147,20 +181,38 @@
          <enum>QFrame::Raised</enum>
         </property>
         <layout class="QHBoxLayout" >
-         <property name="margin" >
-          <number>9</number>
-         </property>
          <property name="spacing" >
           <number>6</number>
          </property>
+         <property name="leftMargin" >
+          <number>9</number>
+         </property>
+         <property name="topMargin" >
+          <number>9</number>
+         </property>
+         <property name="rightMargin" >
+          <number>9</number>
+         </property>
+         <property name="bottomMargin" >
+          <number>9</number>
+         </property>
          <item>
           <layout class="QVBoxLayout" >
-           <property name="margin" >
-            <number>0</number>
-           </property>
            <property name="spacing" >
             <number>6</number>
            </property>
+           <property name="leftMargin" >
+            <number>0</number>
+           </property>
+           <property name="topMargin" >
+            <number>0</number>
+           </property>
+           <property name="rightMargin" >
+            <number>0</number>
+           </property>
+           <property name="bottomMargin" >
+            <number>0</number>
+           </property>
            <item>
             <widget class="QLabel" name="labelActionName" >
              <property name="text" >
@@ -186,20 +238,38 @@
          <enum>QFrame::Raised</enum>
         </property>
         <layout class="QHBoxLayout" >
-         <property name="margin" >
-          <number>9</number>
-         </property>
          <property name="spacing" >
           <number>6</number>
          </property>
+         <property name="leftMargin" >
+          <number>9</number>
+         </property>
+         <property name="topMargin" >
+          <number>9</number>
+         </property>
+         <property name="rightMargin" >
+          <number>9</number>
+         </property>
+         <property name="bottomMargin" >
+          <number>9</number>
+         </property>
          <item>
           <layout class="QVBoxLayout" >
-           <property name="margin" >
-            <number>0</number>
-           </property>
            <property name="spacing" >
             <number>6</number>
            </property>
+           <property name="leftMargin" >
+            <number>0</number>
+           </property>
+           <property name="topMargin" >
+            <number>0</number>
+           </property>
+           <property name="rightMargin" >
+            <number>0</number>
+           </property>
+           <property name="bottomMargin" >
+            <number>0</number>
+           </property>
            <item>
             <widget class="QLabel" name="textLabel1" >
              <property name="text" >
@@ -219,12 +289,21 @@
            </item>
            <item>
             <layout class="QHBoxLayout" >
-             <property name="margin" >
-              <number>0</number>
-             </property>
              <property name="spacing" >
               <number>6</number>
              </property>
+             <property name="leftMargin" >
+              <number>0</number>
+             </property>
+             <property name="topMargin" >
+              <number>0</number>
+             </property>
+             <property name="rightMargin" >
+              <number>0</number>
+             </property>
+             <property name="bottomMargin" >
+              <number>0</number>
+             </property>
              <item>
               <widget class="QCheckBox" name="checkBoxRefreshAfterAction" >
                <property name="toolTip" >
@@ -261,12 +340,21 @@
      </item>
      <item>
       <layout class="QHBoxLayout" >
-       <property name="margin" >
-        <number>0</number>
-       </property>
        <property name="spacing" >
         <number>6</number>
        </property>
+       <property name="leftMargin" >
+        <number>0</number>
+       </property>
+       <property name="topMargin" >
+        <number>0</number>
+       </property>
+       <property name="rightMargin" >
+        <number>0</number>
+       </property>
+       <property name="bottomMargin" >
+        <number>0</number>
+       </property>
        <item>
         <spacer>
          <property name="orientation" >
Signature · 1 line
1.5.3.rc2.30.g1fe72
#4 lore raw

PATCH 4/6 change size policy of splitter which contains the list and the textbox

In reply to Peter Oberndorfer

in action setup dialog to expanding
else the empty space with the button below takes up half of the vertical space

---
 src/customaction.ui |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
src/customaction.ui +6 -0
index 59004ca..49bb6c7 100644
@@ -170,6 +170,12 @@
      </item>
      <item>
       <widget class="QSplitter" name="splitter" >
+       <property name="sizePolicy" >
+        <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
Signature · 1 line
1.5.3.rc2.30.g1fe72
#5 lore raw

PATCH 5/6 remove empty space below "diff to" header in patch view

In reply to Peter Oberndorfer
---
 src/patchview.ui |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/patchview.ui +2 -2
index 6dbf53c..b4d3081 100644
@@ -31,7 +31,7 @@
    <item>
     <layout class="QVBoxLayout" >
      <property name="spacing" >
-      <number>6</number>
+      <number>0</number>
      </property>
      <property name="leftMargin" >
       <number>0</number>
@@ -131,7 +131,7 @@
          <property name="sizeHint" >
           <size>
            <width>20</width>
-           <height>40</height>
+           <height>0</height>
           </size>
          </property>
         </spacer>
Signature · 1 line
1.5.3.rc2.30.g1fe72
#6 lore raw

PATCH 6/6 remove empty space below button bar in file view

In reply to Peter Oberndorfer
---
 src/fileview.ui |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/fileview.ui +1 -1
index 190ed5e..97fa000 100644
@@ -31,7 +31,7 @@
    <item>
     <layout class="QVBoxLayout" >
      <property name="spacing" >
-      <number>6</number>
+      <number>0</number>
      </property>
      <property name="leftMargin" >
       <number>0</number>
Signature · 1 line
1.5.3.rc2.30.g1fe72
#7 lore raw
In reply to Peter Oberndorfer
Quoted 32 lines · Peter Oberndorfer

Hi,
the initial reason for this patches is that here on my system qgit4 looks like this
http://img77.imageshack.us/my.php?image=qgit4strangewindowgi0.png
which is a bit suboptimal for viewing patches :-)
this is on a standard qt 4.3 from gentoo

While i was there i removed the same problem in the custom action editor and removed some unneed empty space

Actually locally i removed even more empty space, like around the main tab view and inside the main tab view.
If anyone wants me to remove that too, i would be happy to send more patches

[QGIT4 PATCH 1/6] update patchview.ui with new qt designer
When i edit the .ui files with the QT designer it updates some unrelated parts. Because of this i split the update into a separate patch so the real changes are obvious. Feel free to collapse them if you want

[QGIT4 PATCH 2/6] change size policy of the patch viewer to expanding
this fixes the problem from the screenshot above

[QGIT4 PATCH 3/6] update patchview.ui with new qt designer
same reason as patch 1

[QGIT4 PATCH 4/6] change size policy of splitter which contains the list and the textbox
fix same problem in custom action editor

[QGIT4 PATCH 5/6] remove empty space below "diff to" header in patch view [QGIT4 PATCH 6/6] remove empty space below button bar in file view
these remove some more empty space which i personally find useless Apply if you like them

Quoted 9 lines

If you want i can provide more screenshots of how patches change appearance.

Greetings Peter
-
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

hmm, kmail moved Signed-off-by in patches to mail headers, because there was no message text before it.

so here is a

for all my qgit patches

Greetings Peter

#8 lore raw
In reply to Peter Oberndorfer
Quoted 3 lines · Peter Oberndorfer

Hi,
the initial reason for this patches is that here on my system qgit4 looks like this
http://img77.imageshack.us/my.php?image=qgit4strangewindowgi0.png

Hi Peter,

OMG that's horrific! I can't understand how it is possible, on my box (Mandriva with QT4.3) everything is fine.

Anyway thanks a lot for the patches. Already applied and pushed.

Quoted 1 line

If anyone wants me to remove that too, i would be happy to send more patches

Please feel free to send me any patch that could improve the GUI, unfortunately on my box I'm unable to see all these defects, so any patch from you is more then welcome.

Quoted 3 lines

If you want i can provide more screenshots of how patches change appearance.

Patchview has not changed for me with your patches, fileview yes, I can see the difference and also customaction. I would say nice job! thanks.

Marco

#9 lore raw
Quoted 11 lines · Marco Costalba
Quoted 3 lines · Peter Oberndorfer

Hi,
the initial reason for this patches is that here on my system qgit4 looks like this
http://img77.imageshack.us/my.php?image=qgit4strangewindowgi0.png

Hi Peter,

OMG that's horrific! I can't understand how it is possible, on my box (Mandriva with QT4.3) everything is fine.

Anyway thanks a lot for the patches. Already applied and pushed.

Thanks for applying.

Quoted 6 lines
Quoted 2 lines

If anyone wants me to remove that too, i would be happy to send more patches

Please feel free to send me any patch that could improve the GUI, unfortunately on my box I'm unable to see all these defects, so any patch from you is more then welcome.

Will send them when they are cleaned up properly.

Quoted 8 lines
Quoted 4 lines

If you want i can provide more screenshots of how patches change appearance.

Patchview has not changed for me with your patches, fileview yes, I can see the difference and also customaction. I would say nice job! thanks.

Without patch 5 (remove empty space below "diff to" header in patch view) qgit4 looks like this on my machine
http://img409.imageshack.us/img409/5174/qgitwithoutpatch5zp9.png

Greetings Peter

Quoted 8 lines

Marco
-
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html