]> git.sur5r.net Git - minitube/blobdiff - src/channelitemdelegate.cpp
Fix compiler warnings reported by clang.
[minitube] / src / channelitemdelegate.cpp
index 797b82a539a2ea502776ce60a75e0367c4543e3b..4c13dfe7446bb618c756a05debc03fd236cb4c4f 100644 (file)
@@ -56,6 +56,7 @@ void ChannelItemDelegate::paint( QPainter* painter,
 void ChannelItemDelegate::paintAggregate(QPainter* painter,
                                           const QStyleOptionViewItem& option,
                                           const QModelIndex& index) const {
+    Q_UNUSED(index);
     painter->save();
 
     painter->translate(option.rect.topLeft());
@@ -73,6 +74,7 @@ void ChannelItemDelegate::paintAggregate(QPainter* painter,
 void ChannelItemDelegate::paintUnwatched(QPainter* painter,
                                           const QStyleOptionViewItem& option,
                                           const QModelIndex& index) const {
+    Q_UNUSED(index);
     painter->save();
 
     painter->translate(option.rect.topLeft());