Commit edc7d22c authored by Pino Toscano's avatar Pino Toscano

reset the line edit palette when we get results

svn path=/trunk/KDE/kdegraphics/okular/; revision=890654
parent 9d1977d6
......@@ -170,6 +170,14 @@ void SearchLineEdit::searchFinished( int id, Okular::Document::SearchStatus endS
pal.setBrush( QPalette::Text, scheme.foreground( KColorScheme::NegativeText ) );
setPalette( pal );
}
else
{
QPalette pal = palette();
const QPalette qAppPalette = QApplication::palette();
pal.setColor( QPalette::Base, qAppPalette.color( QPalette::Base ) );
pal.setColor( QPalette::Text, qAppPalette.color( QPalette::Text ) );
setPalette( pal );
}
}
#include "searchlineedit.moc"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment