1
mirror of https://code.videolan.org/videolan/vlc synced 2024-07-21 07:24:15 +02:00

Delete the "QPainter::begin: A paint device can only be painted by one painter at a time" boring messages in playlist.

This commit is contained in:
Jean-Baptiste Kempf 2008-08-01 13:05:56 -07:00
parent e3da66b706
commit 9e9b885904

View File

@ -30,7 +30,6 @@
#include "customwidgets.hpp"
#include <QPainter>
#include <QLineEdit>
#include <QPainter>
#include <QColorGroup>
#include <QRect>
#include <QKeyEvent>
@ -60,9 +59,9 @@ void ClickLineEdit::setText( const QString &txt )
void ClickLineEdit::paintEvent( QPaintEvent *pe )
{
QPainter p( this );
QLineEdit::paintEvent( pe );
if ( mDrawClickMsg == true && !hasFocus() ) {
QPainter p( this );
QPen tmp = p.pen();
p.setPen( palette().color( QPalette::Disabled, QPalette::Text ) );
QRect cr = contentsRect();
@ -70,6 +69,7 @@ void ClickLineEdit::paintEvent( QPaintEvent *pe )
cr.setLeft( cr.left() + 3 );
p.drawText( cr, Qt::AlignLeft | Qt::AlignVCenter, mClickMessage );
p.setPen( tmp );
p.end();
}
}