Use QTextLayout for computing word withs rather than a homebrew solution
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 7 Jul 2008 23:31:07 +0000 (01:31 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Aug 2008 13:17:10 +0000 (15:17 +0200)
commit8a630c9f7a01e24a2ae0d8aae8974d0b5509ad7d
tree360cb1e7ba783e40a551aead4e5bd0481f896141
parent7e051ca7bf165df865b61fe07a80699e5ea0503e
Use QTextLayout for computing word withs rather than a homebrew solution

According to my benchmarks, it's very slightly slower (on my machine, on the
order of 10 ms for 500 chatlines). It does make the code much nicer though.
Also we might catch details like kerning or ligatures where our own solution
might have failed.
src/qtui/chatlinemodelitem.cpp
src/qtui/chatlinemodelitem.h