From 5e2a1ae3feaa4b6f0f8cca5abc8326612f1c4ca0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 19 Jul 2023 17:05:41 +0900 Subject: Drop compatibility code for TQPalette Signed-off-by: Michele Calgaro --- src/kvilib/tal/kvi_tal_wizard.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kvilib/tal/kvi_tal_wizard.cpp b/src/kvilib/tal/kvi_tal_wizard.cpp index 396aa650..81ccda5f 100644 --- a/src/kvilib/tal/kvi_tal_wizard.cpp +++ b/src/kvilib/tal/kvi_tal_wizard.cpp @@ -398,11 +398,11 @@ void KviTalWizard::setCurrentPage(KviTalWizardPageData * pData) szTitle += ""; TQPalette pal = m_p->pStepsLabel->palette(); #ifdef COMPILE_USE_QT4 - TQColor clrWin = pal.color(TQPalette::Normal,TQPalette::Window); - TQColor clrTxt = pal.color(TQPalette::Normal,TQPalette::WindowText); + TQColor clrWin = pal.color(TQPalette::Active,TQPalette::Window); + TQColor clrTxt = pal.color(TQPalette::Active,TQPalette::WindowText); #else - TQColor clrWin = pal.color(TQPalette::Normal,TQColorGroup::Foreground); - TQColor clrTxt = pal.color(TQPalette::Normal,TQColorGroup::Background); + TQColor clrWin = pal.color(TQPalette::Active,TQColorGroup::Foreground); + TQColor clrTxt = pal.color(TQPalette::Active,TQColorGroup::Background); #endif TQColor clrMid = tqRgb( (clrWin.red() + clrTxt.red()) / 2, -- cgit v1.2.1