backport: reset the line edit palette when we get results

svn path=/branches/KDE/4.1/kdegraphics/okular/; revision=890792
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent 97923d10a7
commit 38fe9646a9
  1. 8
      ui/searchlineedit.cpp

@ -155,6 +155,14 @@ void SearchLineEdit::searchFinished( int id, Okular::Document::SearchStatus endS
pal.setColor( QPalette::Text, Qt::white );
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"

Loading…
Cancel
Save