From 9e9b88590430f51228ad3f0c72d219543ca1e1f0 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Fri, 1 Aug 2008 13:05:56 -0700 Subject: [PATCH] Delete the "QPainter::begin: A paint device can only be painted by one painter at a time" boring messages in playlist. --- modules/gui/qt4/util/customwidgets.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } } -- 2.39.2