<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=415530510-16122004><FONT face=Arial 
color=#0000ff size=2>Thanks for trying to fix this, but qcommonstyle.cpp is not 
a Windows-specific file and as such it is our policy not to change it (the X11 
version works just fine with this code as it is). Perhaps you can find a fix 
that only touches _win.cpp files?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=415530510-16122004><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=415530510-16122004><FONT face=Arial 
color=#0000ff size=2>Chris</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV>Hi,</DIV>
  <DIV>In styles/qcommonstyle.cpp, the function drawComplexControl is called at 
  least by QToolBox buttons to draw / clear the shape. The function tests for 
  flags (Style_Down | Style_On | Style_Raised), and in such a case it draws the 
  shape by calling drawPrimitive. If not, nothing is done, and so if a shape was 
  previously painted, it is not erased.&nbsp; drawPrimitive already tests for 
  this flags, and if they are not present, it erase the shape. So the test is 
  unneeded, and removing it corrects the bug.</DIV>
  <DIV>---------------------------------------8&lt;------------------------------------------</DIV>
  <DIV>diff -u -r1.1.1.1 qcommonstyle.cpp<BR>--- qcommonstyle.cpp&nbsp;15 Dec 
  2004 23:06:00 -0000&nbsp;1.1.1.1<BR>+++ qcommonstyle.cpp&nbsp;15 Dec 2004 
  23:52:53 -0000<BR>@@ -1590,9 +1590,10 @@<BR>&nbsp;&nbsp;&nbsp;mflags |= 
  Style_Down;<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (controls &amp; 
  SC_ToolButton) {<BR>-&nbsp;&nbsp;if (bflags &amp; (Style_Down | Style_On | 
  Style_Raised)) {<BR>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  drawPrimitive(PE_ButtonTool, p, button, c, bflags, opt);<BR>-&nbsp;&nbsp;} 
  else if ( toolbutton-&gt;parentWidget() &amp;&amp;<BR>+&nbsp;&nbsp;//if 
  (bflags &amp; (Style_Down | Style_On | Style_Raised)) 
  {<BR>+&nbsp;&nbsp;drawPrimitive(PE_ButtonTool, p, button, c, bflags, 
  opt);<BR>+&nbsp;&nbsp;//} else <BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  if ( toolbutton-&gt;parentWidget() 
  &amp;&amp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  toolbutton-&gt;parentWidget()-&gt;backgroundPixmap() 
  &amp;&amp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ! 
  toolbutton-&gt;parentWidget()-&gt;backgroundPixmap()-&gt;isNull() ) 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QPixmap pixmap =<BR>
  <DIV>---------------------------------------8&lt;------------------------------------------</DIV></DIV></BLOCKQUOTE></BODY></HTML>