Use the standard KDE color for the content area messages.

Patch by Robert Knight, thanks!

BUG: 156457

svn path=/trunk/KDE/kdegraphics/okular/; revision=765205
This commit is contained in:
Pino Toscano 2008-01-23 13:20:25 +00:00
parent b897d75b0b
commit a3e0474e35

View file

@ -22,6 +22,7 @@
#include <qtimer.h>
#include <qtoolbutton.h>
#include <kacceleratormanager.h>
#include <kcolorscheme.h>
#include <kiconloader.h>
#include <klocale.h>
@ -293,10 +294,7 @@ PageViewTopMessage::PageViewTopMessage( QWidget * parent )
{
setAutoFillBackground( true );
QPalette pal = palette();
pal.setColor( QPalette::Active, QPalette::Window, Qt::yellow );
pal.setColor( QPalette::Inactive, QPalette::Window, Qt::yellow );
pal.setColor( QPalette::Disabled, QPalette::Window, Qt::yellow );
pal.setColor( QPalette::WindowText, Qt::black );
KColorScheme::adjustBackground( pal, KColorScheme::NeutralBackground, QPalette::Window );
setPalette( pal );
QHBoxLayout * lay = new QHBoxLayout( this );
lay->setMargin( 4 );