Commit Graph

9 Commits

Author SHA1 Message Date
Aaron Seigo
27531a3173 the palette gets updated by all sorts of events on the scene now (incl. reparenting!), so make sure the palette is _really_ changing before marking it as custom
this fixes widget colours not updating with theme changes -> if, for instance, an offscreen widget is created, this results in a reparenting (to null)
and that in turn creates a palette changed event ... which was being intepretted as a custom palette being set and that would disable future updates
due to theme changes.

this also introduces a small helper which computes the palettes once for use by all widgets as a small performance improvement.

BUG:261967
2011-12-04 14:00:32 +01:00
Christoph Feck
30799cc1be Fix alpha value
svn path=/trunk/KDE/kdelibs/; revision=1194319
2010-11-08 17:25:12 +00:00
Aaron J. Seigo
afe897be89 * restore the color alpha after altering it
* use button text color for button text (sounds more logically obvious than it was ;)
* optionally use button text color for regular text as well (used by spinbox, lineedit)

svn path=/trunk/KDE/kdelibs/; revision=1191135
2010-10-29 17:25:00 +00:00
Marco Martin
4e6eb9a316 uncomment this again, doesn't seem to crash anymore
svn path=/trunk/KDE/kdelibs/; revision=1189764
2010-10-25 20:02:13 +00:00
Marco Martin
aa08ed2808 delete already existing values before inserting new
svn path=/trunk/KDE/kdelibs/; revision=1188939
2010-10-23 12:06:21 +00:00
Aaron J. Seigo
681452d32d shouldn't have been commented out
svn path=/trunk/KDE/kdelibs/; revision=1188637
2010-10-22 19:43:58 +00:00
Marco Martin
4dd1c28b6d fix the wreckage caused by last commit
bad Aaron, no cookie :)
can you check if those changes make sense upon what your patch ws supposed to be?
CCMAIL:aseigo@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1188445
2010-10-22 12:29:35 +00:00
David Faure
f241ee6ac7 themedwidgetinterface_p.h:86:43: error: incomplete type 'QApplication' used in nested name specifier
svn path=/trunk/KDE/kdelibs/; revision=1188421
2010-10-22 10:59:45 +00:00
Aaron J. Seigo
a793185b21 consolidate all the theming (palette, fonts) code for widgets into a private interface: ThemeWidgetInterface. have the relevant *Private classes inherit from it and all the tricky logic is now in one place and consistent.
svn path=/trunk/KDE/kdelibs/; revision=1188314
2010-10-22 00:25:17 +00:00