[vlc-devel] commit: Delete the "QPainter::begin: A paint device can only be painted by one painter at a time" boring messages in playlist. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Fri Aug 1 22:04:21 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 1 13:05:56 2008 -0700| [9e9b88590430f51228ad3f0c72d219543ca1e1f0] | committer: Jean-Baptiste Kempf
Delete the "QPainter::begin: A paint device can only be painted by one painter at a time" boring messages in playlist.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e9b88590430f51228ad3f0c72d219543ca1e1f0
---
modules/gui/qt4/util/customwidgets.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/util/customwidgets.cpp b/modules/gui/qt4/util/customwidgets.cpp
index 4de1129..ba58004 100644
--- a/modules/gui/qt4/util/customwidgets.cpp
+++ b/modules/gui/qt4/util/customwidgets.cpp
@@ -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();
}
}
More information about the vlc-devel
mailing list