<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
Maks Orlovich wrote:<br>
<blockquote type="cite"
cite="mid200209021150.24232.mo002j@mail.rochester.edu">
<blockquote type="cite">
<pre wrap="">First of all I have to ask why this somewhat "hacky" tweak is needed.
Couldn't it simply be fixed in the styles, liquid seems to manage it.
</pre>
</blockquote>
<pre wrap=""><!---->
Because the style doesn't even draw labels, and for many other objects it
can't check parenting anyway, plus doing the check every time is somewhat of
an overhead. So the style has to handle this with event filters installed in
::polish(), and it either has to walk up the widget tree upto the root for
every widget that is created checking for toolbar, or do something like this.
And performance matters, so the name check is there. The reason Liquid
doesn't need to do this is that it, IIRC, simply uses the stiple to draw the
background, and so Qt draws it for it. However, changing the background brush
requires dozens of hacks to get the alignment right.
</pre>
<blockquote type="cite">
<pre wrap="">Lastly, after trying it it unfortunately doesn't seem to work. The
background is still not right.
</pre>
</blockquote>
<pre wrap=""><!---->
It certainly works for KAddressBook -- could you perhaps compare what you're
doing with it?
</pre>
</blockquote>
Will do. Thanx for a response that definately makes sense. It wasn't like
it was hard to fix, I just thought there might be other apps out there who
also was not aware of this. I'll investigate what the problem is that make
it not work.<br>
<br>
/Mauritz<br>
Underscore AB<br>
</body>
</html>