Oxygen style bad drawing
djarvie at kde.org
Sat Mar 8 16:09:39 GMT 2008
On Fri 7 March 2008 19:44:00 Rafael Fernández López wrote:
> Hi all,
> When going deeper into the WoC strategy applied to MVC, I ran into a
> problem (Oxygen specific). I set a green background in purpose to check
> what was going on:
> I was rendering with QWidget::render() method, and I wasn't setting the
> flag QWidget::DrawWindowBackground. Note that a border is drawn, making a
> really ugly effect.
> I tried with other styles, and this didn't happen. For instance, Plastique:
> Then, I took a look to Oxygen's style code, and reached the point of the
> method OxygenStyle::renderWindowBackground. That seems to be the root of
> the problem. The attached patch "fixes" this problem. I guess we want this
> method only for certain widgets (windows), so we probably should make a
> cast inside, but I wasn't sure for which widgets we want the radial
> gradient. What is for sure is that we don't want it for all widgets.
I've been having this problem with rendering a QSpinBox under Oxygen. Now I
know why! :) It would be good if this was fixed.
KAlarm author and maintainer.
More information about the kde-core-devel