mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-22 16:59:58 +01:00
Remove warnings (aka make it compile with -Werror)
This commit is contained in:
parent
6239f90cf0
commit
d4109d8575
@ -132,6 +132,8 @@ ResolverConfigDelegate::sizeHint( const QStyleOptionViewItem& option, const QMod
|
||||
bool
|
||||
ResolverConfigDelegate::editorEvent(QEvent* event, QAbstractItemModel* model, const QStyleOptionViewItem& option, const QModelIndex& index)
|
||||
{
|
||||
Q_UNUSED(style);
|
||||
|
||||
// qDebug() << "EDITOR EVENT!" << ( event->type() == QEvent::MouseButtonRelease );
|
||||
|
||||
QStyleOptionViewItemV4 viewOpt( option );
|
||||
|
@ -161,6 +161,8 @@ CategoryItem::insertItem( SourceTreeItem* item )
|
||||
void
|
||||
CategoryItem::insertItems( QList< SourceTreeItem* > items )
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
|
||||
// add the items to the category, and connect to the signals
|
||||
int curCount = children().size();
|
||||
if( m_showAdd ) // if there's an add item, add it before that
|
||||
|
@ -39,6 +39,8 @@ SourcesModel::SourcesModel( QObject* parent )
|
||||
: QAbstractItemModel( parent )
|
||||
, m_viewPageDelayedCacheItem( 0 )
|
||||
{
|
||||
Q_UNUSED(recent);
|
||||
|
||||
m_rootItem = new SourceTreeItem( this, 0, Invalid );
|
||||
|
||||
appendItem( source_ptr() );
|
||||
@ -193,6 +195,7 @@ SourcesModel::flags( const QModelIndex& index ) const
|
||||
void
|
||||
SourcesModel::appendItem( const Tomahawk::source_ptr& source )
|
||||
{
|
||||
Q_UNUSED(item);
|
||||
|
||||
beginInsertRows( QModelIndex(), rowCount(), rowCount() );
|
||||
// append to end
|
||||
@ -339,7 +342,7 @@ SourcesModel::linkSourceItemToPage( SourceTreeItem* item, ViewPage* p )
|
||||
// TODO handle removal
|
||||
m_sourceTreeLinks[ p ] = item;
|
||||
|
||||
if( m_viewPageDelayedCacheItem = p )
|
||||
if( m_viewPageDelayedCacheItem == p )
|
||||
emit selectRequest( indexFromItem( item ) );
|
||||
|
||||
m_viewPageDelayedCacheItem = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user