All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] qgit: Default the log window to wider than the file list and set monospaced font
@ 2007-02-07 21:38 Andy Parkins
  2007-02-08  8:39 ` Marco Costalba
  0 siblings, 1 reply; 21+ messages in thread
From: Andy Parkins @ 2007-02-07 21:38 UTC (permalink / raw)
  To: git

The log window and changed files list would start at equal sizes.  This
patch gives them each a horizontal stretch factor making them have a 3:1
ratio.

The font for the log viewer is set to "Monospace", but this should
really be done in software and given a config setting (perhaps use the
patch view font)

Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
 src/revsview.ui |   31 ++++++++++++++++++++++++++-----
 1 files changed, 26 insertions(+), 5 deletions(-)

diff --git a/src/revsview.ui b/src/revsview.ui
index 3fb02ee..ad16200 100644
--- a/src/revsview.ui
+++ b/src/revsview.ui
@@ -55,11 +55,32 @@
        <enum>Qt::Horizontal</enum>
       </property>
       <widget class="RevDesc" name="textBrowserDesc" >
+       <property name="sizePolicy" >
+        <sizepolicy>
+         <hsizetype>5</hsizetype>
+         <vsizetype>13</vsizetype>
+         <horstretch>3</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="font" >
+        <font>
+         <family>Monospace</family>
+        </font>
+       </property>
        <property name="lineWrapMode" >
         <enum>QTextEdit::NoWrap</enum>
        </property>
       </widget>
       <widget class="FileList" name="fileList" >
+       <property name="sizePolicy" >
+        <sizepolicy>
+         <hsizetype>5</hsizetype>
+         <vsizetype>13</vsizetype>
+         <horstretch>1</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
        <property name="contextMenuPolicy" >
         <enum>Qt::CustomContextMenu</enum>
        </property>
@@ -72,16 +93,16 @@
  <layoutdefault spacing="6" margin="11" />
  <customwidgets>
   <customwidget>
-   <class>ListView</class>
-   <extends>QTreeView</extends>
-   <header>listview.h</header>
-  </customwidget>
-  <customwidget>
    <class>FileList</class>
    <extends>QListWidget</extends>
    <header>filelist.h</header>
   </customwidget>
   <customwidget>
+   <class>ListView</class>
+   <extends>QTreeView</extends>
+   <header>listview.h</header>
+  </customwidget>
+  <customwidget>
    <class>RevDesc</class>
    <extends>QTextBrowser</extends>
    <header>revdesc.h</header>
-- 
1.5.0.rc1.gf4b6c

^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2007-02-09  9:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-07 21:38 [PATCH] qgit: Default the log window to wider than the file list and set monospaced font Andy Parkins
2007-02-08  8:39 ` Marco Costalba
2007-02-08  9:46   ` Jakub Narebski
2007-02-08 10:20   ` Andy Parkins
2007-02-08 19:06     ` Marco Costalba
2007-02-08 19:12       ` Andy Parkins
2007-02-08 19:29         ` Marco Costalba
2007-02-08 19:51           ` Marco Costalba
2007-02-08 21:58             ` Andy Parkins
2007-02-08 23:31               ` [PATCH] qgit4: Add a header and set the font family appropriately to the log message Andy Parkins
2007-02-08 23:41                 ` Shawn O. Pearce
2007-02-08 23:58                   ` Junio C Hamano
2007-02-09  0:29                     ` Linus Torvalds
2007-02-09  0:43                       ` [PATCH] format-patch -n: make sorting easier by padding number Johannes Schindelin
2007-02-09  0:47                         ` Johannes Schindelin
2007-02-09  9:19                     ` [PATCH] qgit4: Add a header and set the font family appropriately to the log message Michael S. Tsirkin
2007-02-09  5:44                 ` Marco Costalba
2007-02-08 23:31               ` [PATCH] qgit4: Removed the monospace font override from the log viewer box Andy Parkins
2007-02-08 23:31               ` [PATCH] qgit4: Set a 5:1 stretch ratio on the left and right halves of the patch viewer Andy Parkins
2007-02-08 23:04           ` [PATCH] qgit: Default the log window to wider than the file list and set monospaced font Andy Parkins
2007-02-08 10:22   ` Andy Parkins

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.