diff --git a/kcms/krdb/krdb.cpp b/kcms/krdb/krdb.cpp --- a/kcms/krdb/krdb.cpp +++ b/kcms/krdb/krdb.cpp @@ -29,7 +29,6 @@ #include #include #include -#include #include #include @@ -375,11 +374,10 @@ // tooltips don't have the standard background color t << "style \"ToolTip\"" << endl; t << "{" << endl; - QPalette group = QToolTip::palette(); - t << " bg[NORMAL] = " << color( group.color( QPalette::Active, QPalette::Background ) ) << endl; - t << " base[NORMAL] = " << color( group.color( QPalette::Active, QPalette::Base ) ) << endl; - t << " text[NORMAL] = " << color( group.color( QPalette::Active, QPalette::Text ) ) << endl; - t << " fg[NORMAL] = " << color( group.color( QPalette::Active, QPalette::Foreground ) ) << endl; + t << " bg[NORMAL] = " << color( cg.color( QPalette::ToolTipBase ) ) << endl; + t << " base[NORMAL] = " << color( cg.color( QPalette::ToolTipBase ) ) << endl; + t << " text[NORMAL] = " << color( cg.color( QPalette::ToolTipText ) ) << endl; + t << " fg[NORMAL] = " << color( cg.color( QPalette::ToolTipText ) ) << endl; t << "}" << endl; t << endl; t << "widget \"gtk-tooltip\" style \"ToolTip\"" << endl;