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