* Panel is renamed to Frame
* Use a QStyleOptionFrame * Add the rect to the QStyleOptionFrame * Set the palette to the widget palette * style default = state none * Draw the primitive with these options I didn't use QStyleOptionFrameV2 because I don't know if kde will require Qt4.1 or higher. Version 2 supports flat frames and is available from Qt4.1. svn path=/trunk/KDE/kdebase/workspace/; revision=501144
This commit is contained in:
parent
42937f76a7
commit
1c71f040e2
1 changed files with 6 additions and 2 deletions
|
@ -29,6 +29,7 @@ License. See the file "COPYING" for the exact licensing terms.
|
|||
#include <kstringhandler.h>
|
||||
#include <kglobalsettings.h>
|
||||
#include <QX11Info>
|
||||
#include <QStyleOptionFrame>
|
||||
|
||||
// specify externals before namespace
|
||||
|
||||
|
@ -76,8 +77,11 @@ void PopupInfo::reset()
|
|||
void PopupInfo::paintEvent( QPaintEvent* )
|
||||
{
|
||||
QPainter p( this );
|
||||
#warning Somebody with QStyle knowledge, please fix.
|
||||
// style()->drawPrimitive( QStyle::PE_Frame, &p, QRect( 0, 0, width(), height() ), colorGroup(), QStyle::Style_Default );
|
||||
QStyleOptionFrame *so = new QStyleOptionFrame;
|
||||
so->rect = QRect( 0, 0, width(), height() );
|
||||
so->palette = palette();
|
||||
so->state = QStyle::State_None;
|
||||
style()->drawPrimitive( QStyle::PE_Frame, so, &p );
|
||||
paintContents();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue