From: Jean-Baptiste Kempf Date: Fri, 1 Aug 2008 20:05:56 +0000 (-0700) Subject: Delete the "QPainter::begin: A paint device can only be painted by one painter at... X-Git-Tag: 0.9.0-test3~38 X-Git-Url: https://git.sesse.net/?p=vlc;a=commitdiff_plain;h=9e9b88590430f51228ad3f0c72d219543ca1e1f0 Delete the "QPainter::begin: A paint device can only be painted by one painter at a time" boring messages in playlist. --- diff --git a/modules/gui/qt4/util/customwidgets.cpp b/modules/gui/qt4/util/customwidgets.cpp index 4de1129e9e..ba58004ae9 100644 --- a/modules/gui/qt4/util/customwidgets.cpp +++ b/modules/gui/qt4/util/customwidgets.cpp @@ -30,7 +30,6 @@ #include "customwidgets.hpp" #include #include -#include #include #include #include @@ -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(); } }