[Kde-hardware-devel] Review Request: Fix PowerDevil KCM "On AC Power" tab background missing gradient

Commit Hook null at kde.org
Mon Oct 15 17:10:42 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106864/#review20409
-----------------------------------------------------------


This review has been submitted with commit 1f0baecc4aaad1db234d9e2c1cbaec08a6894629 by Kai Uwe Broulik to branch master.

- Commit Hook


On Oct. 15, 2012, 4:40 a.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/106864/
> -----------------------------------------------------------
> 
> (Updated Oct. 15, 2012, 4:40 a.m.)
> 
> 
> Review request for Solid.
> 
> 
> Description
> -------
> 
> It really took me two hours to find this bug but now I have found it: Seems like a bug in Qt or in the Oxygen theme: When there is a QScrollArea inside a QTabBar, and this QScrollArea contains a generated widget applied by setWidget, this widget in the first tab of the tab list (and the default selected one) are not opaque, making the gradient invisible. (Sorry, could not describe better).
> 
> After I found out that that ScrollArea is not needed at all but the QTabBar provides scrollbars by itself, I removed all that stuff, and just added a QGridLayout (first thing I could think of that could hold widgets) to hold our EditWidget. Now all the backgrounds are correct.
> 
> And this patch also has a little positive side-effect: The config dialog of the battery plasmoid is now initially sized properly.
> 
> 
> This addresses bug 307648.
>     http://bugs.kde.org/show_bug.cgi?id=307648
> 
> 
> Diffs
> -----
> 
>   powerdevil/kcmodule/profiles/EditPage.cpp 95a98d9 
>   powerdevil/kcmodule/profiles/profileEditPage.ui cc99e9b 
> 
> Diff: http://git.reviewboard.kde.org/r/106864/diff/
> 
> 
> Testing
> -------
> 
> Opened the dialog, the "ON AC Power" tab has proper background. When resizing the dialog, scroll bars appear. It also works when the tabbar is hidden (when no batteries present - just saw: the battery detection code could be simplified like in the other KCM (hasBattery rather than batteryCount)).
> 
> 
> Screenshots
> -----------
> 
> Proof screenshot :)
>   http://git.reviewboard.kde.org/r/106864/s/772/
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20121015/7b73f4e8/attachment.html>


More information about the Kde-hardware-devel mailing list