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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user