1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Fix comparison between signed and unsigned int

This commit is contained in:
Uwe L. Korn
2014-05-28 17:35:36 +01:00
parent 299c358a87
commit c22ebed8e1

View File

@@ -452,7 +452,7 @@ PlaylistItemDelegate::drawAvatarsForBox( QPainter* painter,
QHash< Tomahawk::source_ptr, QRect > rectsToSave; QHash< Tomahawk::source_ptr, QRect > rectsToSave;
unsigned int i = 0; int i = 0;
foreach ( const Tomahawk::source_ptr& s, sources ) foreach ( const Tomahawk::source_ptr& s, sources )
{ {
if ( i >= count ) if ( i >= count )
@@ -575,7 +575,6 @@ PlaylistItemDelegate::editorEvent( QEvent* event, QAbstractItemModel* model, con
if ( !hoveredAvatar.isNull() ) if ( !hoveredAvatar.isNull() )
{ {
const QMouseEvent* ev = static_cast< QMouseEvent* >( event );
QToolTip::showText( m_view->mapToGlobal( hoveredAvatarRect.bottomLeft() ), QToolTip::showText( m_view->mapToGlobal( hoveredAvatarRect.bottomLeft() ),
hoveredAvatar->friendlyName(), hoveredAvatar->friendlyName(),
m_view, m_view,