<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 01/30/2010 05:02 PM, Pino Toscano wrote:
<blockquote cite="mid:201001310102.20741.pino@kde.org" type="cite">
  <pre wrap="">Hi,

Alle venerd́ 29 gennaio 2010, Hugo Pereira Da Costa ha scritto:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Working on oxygen-style, though, I find it too bad its "main widget" has
a plain solid background color that therefore doesn't match with the
rest of the application. I understand, by discussing on IRC#oxygen that
it is for okular to properly work in embedded mode (right ?)
    </pre>
  </blockquote>
  <pre wrap="">
Wasn't that a Qt bug, which just draws a solid background with no way of being 
done otherwise? If so, I'd expect the workaround to be in the style, not in 
every application (Okular included) which make use of that property 
("autoFillBackground").
  </pre>
</blockquote>
Hi Pino,<br>
well the thing is that, by default, autofillbackground is set to false,
meaning: the background for widgets is copied from the mainWidow
background. <br>
<br>
if you set it to true, well it means you do want to use a solid color
for your background, and the style should not (and will not) override
that with its own fancy stuff. Correct ? <br>
Now the question is: does okular really wants "autofillbackground" set
to true in all cases ? <br>
If it wants, then I will not try to go around it in the style, cause
this is a valid (and supported) choice of the app. <br>
If it does not, then, set it to false, and you get the nice oxygen
background, as expected. <br>
<br>
So that all in all, I don't think my patch is a workaround to hide a Qt
(or style) bug. <br>
Does the above make sense ? <br>
<br>
Now, for the complete story: in QAbstractScrollArea, autofillbackground
is set to true by default (on the viewport widget), and hard/impossible
to set to false. This I fixed in oxygen style a couple of days ago (to
address a visual bug in plasma "mouse actions" dialog). But the okular
case is a different issue (where autofillbackground is set to false
_manually_, and IMO should not, in some cases).<br>
 <br>
Hugo<br>
<br>
<blockquote cite="mid:201001310102.20741.pino@kde.org" type="cite">
  <pre wrap="">
  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Okular-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/okular-devel">https://mail.kde.org/mailman/listinfo/okular-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>