summaryrefslogtreecommitdiffstats
path: root/tdestyles/kthemestyle/kthemestyle.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-19 16:16:06 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-19 16:16:06 +0900
commitf6627610258aca3aa0208c16c4bd8b30105393cb (patch)
treed26912f6e1eeb4f5918dc3aaa23bf432140f7cb7 /tdestyles/kthemestyle/kthemestyle.cpp
parent36c049e135b0cec7cf97b41888860186813df5f0 (diff)
downloadtdelibs-f6627610258aca3aa0208c16c4bd8b30105393cb.tar.gz
tdelibs-f6627610258aca3aa0208c16c4bd8b30105393cb.zip
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdestyles/kthemestyle/kthemestyle.cpp')
-rw-r--r--tdestyles/kthemestyle/kthemestyle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tdestyles/kthemestyle/kthemestyle.cpp b/tdestyles/kthemestyle/kthemestyle.cpp
index 899d4681d..b92c0e841 100644
--- a/tdestyles/kthemestyle/kthemestyle.cpp
+++ b/tdestyles/kthemestyle/kthemestyle.cpp
@@ -450,7 +450,7 @@ void KThemeStyle::polish( TQPalette &p )
if ( isPixmap( Background ) )
{
- TQBrush bgBrush( p.color( TQPalette::Normal,
+ TQBrush bgBrush( p.color( TQPalette::Active,
TQColorGroup::Background ),
*uncached( Background ) );
brushHandle = uncached( Background )->handle();
@@ -499,7 +499,7 @@ bool KThemeStyle::objectEventHandler( const TQStyleControlElementData &ceData, C
pos.x(), pos.y());
p.end();
TQPalette pal(w->palette());
- TQBrush brush( pal.color( TQPalette::Normal,
+ TQBrush brush( pal.color( TQPalette::Active,
TQColorGroup::Background),
pix );
pal.setBrush(TQColorGroup::Base, brush);
@@ -524,7 +524,7 @@ void KThemeStyle::polish( const TQStyleControlElementData &ceData, ControlElemen
TQWidget *w = reinterpret_cast<TQWidget*>(ptr);
if (::tqqt_cast<TQStatusBar*>(w))
- w->setPaletteBackgroundColor(TQApplication::palette().color(TQPalette::Normal, TQColorGroup::Background));
+ w->setPaletteBackgroundColor(TQApplication::palette().color(TQPalette::Active, TQColorGroup::Background));
if (::tqqt_cast<TQLabel*>(w) && !qstrcmp(w->name(), "tde toolbar widget"))
installObjectEventHandler(ceData, elementFlags, ptr, this);