--nextPart1662633.8N0rzfm0sF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 07 December 2004 22:19, Alexander Neundorf wrote: > Am I right that backGroundColor() is called for every cell of the listview > ? How about the performance impact ? > It adds at one function call to each paintCell() everywhere in KDE where a > KListView is used. How expensive are the color conversions ? hsv(), dark(= ), > light() ? In fact the new function does nearly the same as the other backgroundColor(= )=20 which was used before in paintCell. The calculation for the different color is only triggered for the cells in = the=20 sorted column (which are currently visible). The dark() and light() calculations are rather inexpensive, as they only do= a=20 multiplication/division. Also some mult/divs in hsv(). I did not see a performance loss.=20 > Could this be calculated once when the colors are set and the=20 > results stored so that they are only reused in paintCell() ? Could be done, but I really don't think this is necessary here. =2D-=20 Best regards/Sch=F6ne Gr=FC=DFe Martin () ascii ribbon campaign - against html mail=20 /\ - against microsoft attachments Some operating systems are called 'user friendly', Linux however is 'expert friendly'. --nextPart1662633.8N0rzfm0sF Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBBtiPfUeHBRvgua64RAvFMAJ9bIxNLBzpxaWgc5VWRkeHiNTQK3gCcCGMp iVOqzKbvFnlScamAwuW+nyM= =H2uw -----END PGP SIGNATURE----- --nextPart1662633.8N0rzfm0sF--