[vlc-devel] commit: Qt: no need to go from bool to int (Jakob Leben )
git version control
git at videolan.org
Fri Jan 29 17:10:34 CET 2010
vlc | branch: master | Jakob Leben <jleben at videolan.org> | Fri Jan 29 17:07:40 2010 +0100| [cd6da087dcf4a31d42762d43b3678e3c1803afa6] | committer: Jakob Leben
Qt: no need to go from bool to int
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd6da087dcf4a31d42762d43b3678e3c1803afa6
---
modules/gui/qt4/components/playlist/icon_view.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index 2fb390f..4e1c7a9 100644
--- a/modules/gui/qt4/components/playlist/icon_view.cpp
+++ b/modules/gui/qt4/components/playlist/icon_view.cpp
@@ -83,7 +83,7 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
QPixmap pix;
QString key = title + artist + artUrl
- + QString( index.data( PLModel::IsCurrentRole ).toInt() );
+ + QString( index.data( PLModel::IsCurrentRole ).toBool() );
if(QPixmapCache::find( key, pix ))
{
// cool, we found it in the cache
@@ -108,7 +108,7 @@ void PlListViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
QPainter::Antialiasing | QPainter::SmoothPixmapTransform |
QPainter::TextAntialiasing );
- if( index.data( PLModel::IsCurrentRole ).toInt() > 0 )
+ if( index.data( PLModel::IsCurrentRole ).toBool() )
{
pixpainter->save();
pixpainter->setOpacity( 0.2 );
More information about the vlc-devel
mailing list