mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
more build fixes
This commit is contained in:
@@ -161,15 +161,12 @@ 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
|
||||||
curCount--;
|
curCount--;
|
||||||
beginRowsAdded( curCount, curCount + items.size() - 1 );
|
beginRowsAdded( curCount, curCount + items.size() - 1 );
|
||||||
foreach( SourceTreeItem* item, items ) {
|
foreach( SourceTreeItem* item, items ) {
|
||||||
int index = m_showAdd ? children().count() - 1 : children().count();
|
|
||||||
insertChild( children().count() - 1, item );
|
insertChild( children().count() - 1, item );
|
||||||
}
|
}
|
||||||
endRowsAdded();
|
endRowsAdded();
|
||||||
|
Reference in New Issue
Block a user