Drop compatibility code for TQPalette

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 1 year ago
parent 1e6b97e1b1
commit 5e2a1ae3fe
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -398,11 +398,11 @@ void KviTalWizard::setCurrentPage(KviTalWizardPageData * pData)
szTitle += "</b>";
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,

Loading…
Cancel
Save