-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/106864/
-----------------------------------------------------------
(Updated Oct. 15, 2012, 4:12 a.m.)
Review request for Solid.
Changes
-------
Added screenshot. Left: Now, Right: Current KDE 4.9.2.
Sorry for the noise.
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 as far as I can tell this
also had the little side-effect that now the config dialog of the battery
plasmoid is sized properly initially. (Did not verify if this is really related
to this patch though)
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 (updated)
-----------
Proof screenshot :)
http://git.reviewboard.kde.org/r/106864/s/772/
Proof screenshot :)
http://git.reviewboard.kde.org/r/106864/s/773/
Thanks,
Kai Uwe Broulik
_______________________________________________
Kde-hardware-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-hardware-devel