git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] qgit: Default the log window to wider than the file list and set monospaced font

From
APAndy Parkins <andyparkins@gmail.com>
Date
Feb 7, 2007, 21:38 UTC
Message-ID
<200702072138.36787.andyparkins@gmail.com>

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
Next: Marco Costalba
Message 1 of 21 in “qgit: Default the log window to wider than the file list and set monospaced font”
  1. qgit: Default the log window to wider than the file list and set monospaced fontAndy Parkins, Feb 7, 2007
  2. Marco CostalbaFeb 8, 2007
  3. Jakub NarebskiFeb 8, 2007
  4. Andy ParkinsFeb 8, 2007
  5. Marco CostalbaFeb 8, 2007
  6. Andy ParkinsFeb 8, 2007
  7. Marco CostalbaFeb 8, 2007
  8. Marco CostalbaFeb 8, 2007
  9. Andy ParkinsFeb 8, 2007
  10. qgit4: Add a header and set the font family appropriately to the log messageAndy Parkins, Feb 8, 2007
  11. Shawn O. PearceFeb 8, 2007
  12. Junio C HamanoFeb 8, 2007
  13. Linus TorvaldsFeb 9, 2007
  14. format-patch -n: make sorting easier by padding numberJohannes Schindelin, Feb 9, 2007
  15. Johannes SchindelinFeb 9, 2007
  16. Michael S. TsirkinFeb 9, 2007
  17. Marco CostalbaFeb 9, 2007
  18. qgit4: Removed the monospace font override from the log viewer boxAndy Parkins, Feb 8, 2007
  19. qgit4: Set a 5:1 stretch ratio on the left and right halves of the patch viewerAndy Parkins, Feb 8, 2007
  20. Andy ParkinsFeb 8, 2007
  21. Andy ParkinsFeb 8, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.