diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-19 16:58:15 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-19 16:58:15 +0900 |
commit | 5863ef46cf5e92d3c9ba7435ec730ba586a898fb (patch) | |
tree | fe7583af5b2d408ddcf7feee72f3c3614a4f7e18 | |
parent | 30555507108fe0b2b3f9ded9de37f38d4a1d9c50 (diff) | |
download | tdepim-5863ef46cf5e92d3c9ba7435ec730ba586a898fb.tar.gz tdepim-5863ef46cf5e92d3c9ba7435ec730ba586a898fb.zip |
Drop compatibility code for TQPalette
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | kaddressbook/views/kaddressbookcardview.cpp | 24 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kaddressbook/views/kaddressbookcardview.cpp b/kaddressbook/views/kaddressbookcardview.cpp index 9c6b55e10..9f169e243 100644 --- a/kaddressbook/views/kaddressbookcardview.cpp +++ b/kaddressbook/views/kaddressbookcardview.cpp @@ -185,18 +185,18 @@ void KAddressBookCardView::readConfig( TDEConfig *config ) // costum colors? if ( config->readBoolEntry( "EnableCustomColors", false ) ) { TQPalette p( mCardView->palette() ); - TQColor c = p.color( TQPalette::Normal, TQColorGroup::Base ); - p.setColor( TQPalette::Normal, TQColorGroup::Base, config->readColorEntry( "BackgroundColor", &c ) ); - c = p.color( TQPalette::Normal, TQColorGroup::Text ); - p.setColor( TQPalette::Normal, TQColorGroup::Text, config->readColorEntry( "TextColor", &c ) ); - c = p.color( TQPalette::Normal, TQColorGroup::Button ); - p.setColor( TQPalette::Normal, TQColorGroup::Button, config->readColorEntry( "HeaderColor", &c ) ); - c = p.color( TQPalette::Normal, TQColorGroup::ButtonText ); - p.setColor( TQPalette::Normal, TQColorGroup::ButtonText, config->readColorEntry( "HeaderTextColor", &c ) ); - c = p.color( TQPalette::Normal, TQColorGroup::Highlight ); - p.setColor( TQPalette::Normal, TQColorGroup::Highlight, config->readColorEntry( "HighlightColor", &c ) ); - c = p.color( TQPalette::Normal, TQColorGroup::HighlightedText ); - p.setColor( TQPalette::Normal, TQColorGroup::HighlightedText, config->readColorEntry( "HighlightedTextColor", &c ) ); + TQColor c = p.color( TQPalette::Active, TQColorGroup::Base ); + p.setColor( TQPalette::Active, TQColorGroup::Base, config->readColorEntry( "BackgroundColor", &c ) ); + c = p.color( TQPalette::Active, TQColorGroup::Text ); + p.setColor( TQPalette::Active, TQColorGroup::Text, config->readColorEntry( "TextColor", &c ) ); + c = p.color( TQPalette::Active, TQColorGroup::Button ); + p.setColor( TQPalette::Active, TQColorGroup::Button, config->readColorEntry( "HeaderColor", &c ) ); + c = p.color( TQPalette::Active, TQColorGroup::ButtonText ); + p.setColor( TQPalette::Active, TQColorGroup::ButtonText, config->readColorEntry( "HeaderTextColor", &c ) ); + c = p.color( TQPalette::Active, TQColorGroup::Highlight ); + p.setColor( TQPalette::Active, TQColorGroup::Highlight, config->readColorEntry( "HighlightColor", &c ) ); + c = p.color( TQPalette::Active, TQColorGroup::HighlightedText ); + p.setColor( TQPalette::Active, TQColorGroup::HighlightedText, config->readColorEntry( "HighlightedTextColor", &c ) ); mCardView->viewport()->setPalette( p ); } else { // needed if turned off during a session. diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index ab61181ca..440bc10d2 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -259,7 +259,7 @@ void MonthViewItem::paint( TQPainter *p ) } if ( !bgColor.isValid() ) { - bgColor = palette().color( TQPalette::Normal, + bgColor = palette().color( TQPalette::Active, sel ? TQColorGroup::Highlight : TQColorGroup::Background ); } @@ -286,7 +286,7 @@ void MonthViewItem::paint( TQPainter *p ) } if ( !frameColor.isValid() ) { - frameColor = palette().color( TQPalette::Normal, + frameColor = palette().color( TQPalette::Active, sel ? TQColorGroup::Highlight : TQColorGroup::Foreground ); } else { |