diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-19 16:16:06 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-19 16:16:06 +0900 |
commit | f6627610258aca3aa0208c16c4bd8b30105393cb (patch) | |
tree | d26912f6e1eeb4f5918dc3aaa23bf432140f7cb7 /tdeio/tdefile/kurlbar.cpp | |
parent | 36c049e135b0cec7cf97b41888860186813df5f0 (diff) | |
download | tdelibs-f6627610258aca3aa0208c16c4bd8b30105393cb.tar.gz tdelibs-f6627610258aca3aa0208c16c4bd8b30105393cb.zip |
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeio/tdefile/kurlbar.cpp')
-rw-r--r-- | tdeio/tdefile/kurlbar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tdeio/tdefile/kurlbar.cpp b/tdeio/tdefile/kurlbar.cpp index 3912aced3..3dcb5620a 100644 --- a/tdeio/tdefile/kurlbar.cpp +++ b/tdeio/tdefile/kurlbar.cpp @@ -455,12 +455,12 @@ void KURLBar::resizeEvent( TQResizeEvent *e ) void KURLBar::paletteChange( const TQPalette & ) { TQPalette pal = palette(); - TQColor gray = pal.color( TQPalette::Normal, TQColorGroup::Background ); - TQColor selectedTextColor = pal.color( TQPalette::Normal, TQColorGroup::BrightText ); - TQColor foreground = pal.color( TQPalette::Normal, TQColorGroup::Foreground ); - pal.setColor( TQPalette::Normal, TQColorGroup::Base, gray ); - pal.setColor( TQPalette::Normal, TQColorGroup::HighlightedText, selectedTextColor ); - pal.setColor( TQPalette::Normal, TQColorGroup::Text, foreground ); + TQColor gray = pal.color( TQPalette::Active, TQColorGroup::Background ); + TQColor selectedTextColor = pal.color( TQPalette::Active, TQColorGroup::BrightText ); + TQColor foreground = pal.color( TQPalette::Active, TQColorGroup::Foreground ); + pal.setColor( TQPalette::Active, TQColorGroup::Base, gray ); + pal.setColor( TQPalette::Active, TQColorGroup::HighlightedText, selectedTextColor ); + pal.setColor( TQPalette::Active, TQColorGroup::Text, foreground ); pal.setColor( TQPalette::Inactive, TQColorGroup::Base, gray ); pal.setColor( TQPalette::Inactive, TQColorGroup::HighlightedText, selectedTextColor ); pal.setColor( TQPalette::Inactive, TQColorGroup::Text, foreground ); |