From bff9d105e960d24570400ad209f943bdc61a1016 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 19 Jul 2023 16:53:24 +0900 Subject: Drop compatibility code for TQPalette Signed-off-by: Michele Calgaro --- kpf/src/DirectoryLister.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kpf') diff --git a/kpf/src/DirectoryLister.cpp b/kpf/src/DirectoryLister.cpp index 6c0715d8..705af47f 100644 --- a/kpf/src/DirectoryLister.cpp +++ b/kpf/src/DirectoryLister.cpp @@ -90,10 +90,10 @@ namespace KPF << endl << "table.filelist { " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Foreground)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Foreground)) << "; " << "background-color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Background)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Background)) << "; " << "border: thin outset; " << "width: 100%; " @@ -106,10 +106,10 @@ namespace KPF << endl << "td.norm { " << "background-color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Base)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Base)) << "; " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Foreground)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Foreground)) << "; " << "}" << endl @@ -118,27 +118,27 @@ namespace KPF << colorToCSS ( TDEGlobalSettings::calculateAlternateBackgroundColor - (pal.color(TQPalette::Normal, TQColorGroup::Base)) + (pal.color(TQPalette::Active, TQColorGroup::Base)) ) << "; " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Foreground)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Foreground)) << "; " << "}" << endl << "a { " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Text)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Text)) << "; " << "text-decoration: none; " << "}" << endl << "th.listheading { " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::ButtonText)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::ButtonText)) << "; " << "background-color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Button)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Button)) << "; " << "text-align: left; " << "white-space: nowrap; " @@ -151,7 +151,7 @@ namespace KPF << endl << "div.sizeentry { " << "color: " - << colorToCSS(pal.color(TQPalette::Normal, TQColorGroup::Text)) + << colorToCSS(pal.color(TQPalette::Active, TQColorGroup::Text)) << "; " << "text-align: right; " << "}" -- cgit v1.2.1