From 952f1a388bc9acfb1dac74d74a12480d329050ea Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 1 Sep 2014 02:32:46 +0200 Subject: [PATCH] * Compiler warnings in item-delegates. --- src/libtomahawk/playlist/PlaylistItemDelegate.cpp | 2 +- src/libtomahawk/playlist/TrackItemDelegate.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp index 2d124a3b6..659636cff 100644 --- a/src/libtomahawk/playlist/PlaylistItemDelegate.cpp +++ b/src/libtomahawk/playlist/PlaylistItemDelegate.cpp @@ -523,7 +523,7 @@ PlaylistItemDelegate::drawSourceIcon( QPainter* painter, const QRect& rect, Play QRect -PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index, const QRect& rect, PlayableItem* item ) const +PlaylistItemDelegate::drawSource( QPainter* painter, const QStyleOptionViewItem& /* option */, const QModelIndex& /* index */, const QRect& rect, PlayableItem* item ) const { painter->save(); painter->setRenderHint( QPainter::TextAntialiasing ); diff --git a/src/libtomahawk/playlist/TrackItemDelegate.cpp b/src/libtomahawk/playlist/TrackItemDelegate.cpp index f08ed681c..e431aa078 100644 --- a/src/libtomahawk/playlist/TrackItemDelegate.cpp +++ b/src/libtomahawk/playlist/TrackItemDelegate.cpp @@ -108,6 +108,7 @@ TrackItemDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, if ( item->query() ) { + //FIXME bool isUnlistened = true; if ( m_mode == Inbox ) {