Make sure that text lines aren't squeezed together in new Qt versions
authorManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Nov 2009 17:55:37 +0000 (18:55 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Fri, 6 Nov 2009 17:59:00 +0000 (18:59 +0100)
commitb104b01dcf522b4c1260172c2492fc7d27706919
treed346a37276b406aa461f3114d4d915ab4bd07873
parentcd4c12254494db672d982927a5556dd78907a4ae
Make sure that text lines aren't squeezed together in new Qt versions

In recent Qt 4.6 versions, there is a commit[1] that changes behavior wrt to lineSpacing() and
friends. Since (at least on my box) the font leading (the distance between text lines) seems to be
always -1 (for reasons as of yet unbeknownst to me), using lineSpacing() lets text lines in ChatView
overlap. This workarounds this with using at least height().

[1] http://qt.gitorious.org/qt/qt/commit/04d18b38c38c5ff623b30366ea08d56128b9b7d0
src/qtui/chatitem.cpp