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

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

From
APAndy Parkins <andyparkins@gmail.com>
Date
Feb 8, 2007, 23:04 UTC
Message-ID
<200702082304.17775.andyparkins@gmail.com>
In-Reply-To
<e5bfff550702081129x6c94eaa4p40cf09e70c4e09cd@mail.gmail.com>
On Thursday 2007, February 08 19:29, Marco Costalba wrote:
Show 9 quoted lines
> qgit4 seems to have more layout weirdeness also in patch and file
> tabs. I didn't fixed it until because I'm still wondering if it is
> enough fixing the layout using stretch factors or bite the bullet and
> implement a geometry persistent saving with QSettings (Qt4 is quite
> powerful in this regard), of course saved geometry should work both
> with maximized and not-maximized window, so perhaps saving
> panes/splitters factors is better then save absolute value at least
> for 'internal' widget, and use absolute window geometry only for qgit
> main window.

Saving factors is definitely the way to go; and then you may as well use the stretch factors as that's all they are in essence. Setting a 3:1 stretch ratio would be the same as setting 75% and 25% factors. The ideal solution is really to set one of them based on the contents, probably the file list; but that's difficult to do as you don't want excessively deep trees to make the thing stupidly wide. In the end, I think making layouts that work in all situations in near impossible, so I usually just go for stretch factors that make it look reasonable in most situations.

Show 8 quoted lines
> Please add dbg(text) line in git.cpp, just below
> Qt::convertFromPlainText(text) call
>
> 		text.append("\n\n    " + colorMatch(c->shortLog(), shortLogRE) +
> 		            '\n' + colorMatch(c->longLog(), longLogRE));
> 	}
> 	text = Qt::convertFromPlainText(text);
> dbg(text);

Good idea. I tried it and the problem would seem to be that convertFromPlainText() doesn't do the conversion as completely as it should. The spaces are being left as spaces, but of course when those get passed to the HTML-ish parser of QTextBrowser, the spaces are being swallowed - as with all HTML parsers. I believe it should actually be replacing all the spaces with "&nbsp;" to /really/ do the plain->HTML conversion. However, the point is moot now anyway because I've dropped it in favour of a div with "white-space: pre" set, which does the job.

Andy
-- 
Dr Andrew Parkins, M Eng (Hons), AMIEE
andyparkins@gmail.com
Previous: Andy ParkinsNext: Andy Parkins
Message 20 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.