mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Oops
This commit is contained in:
@@ -91,7 +91,7 @@ AccountDelegate::sizeHint( const QStyleOptionViewItem& option, const QModelIndex
|
|||||||
// Make more space for each account we have to show.
|
// Make more space for each account we have to show.
|
||||||
AccountFactory* fac = qobject_cast< AccountFactory* >( index.data( AccountModel::AccountData ).value< QObject* >() );
|
AccountFactory* fac = qobject_cast< AccountFactory* >( index.data( AccountModel::AccountData ).value< QObject* >() );
|
||||||
if ( fac->isUnique() )
|
if ( fac->isUnique() )
|
||||||
return QSize( 200, TOPLEVEL_ACCOUNT_HEIGHT );
|
return QSize( 200, m_accountRowHeight );
|
||||||
|
|
||||||
const QList< Account* > accts = index.data( AccountModel::ChildrenOfFactoryRole ).value< QList< Tomahawk::Accounts::Account* > >();
|
const QList< Account* > accts = index.data( AccountModel::ChildrenOfFactoryRole ).value< QList< Tomahawk::Accounts::Account* > >();
|
||||||
const QSize s = QSize( 200, m_accountRowHeight + 12 * accts.size()-1 );
|
const QSize s = QSize( 200, m_accountRowHeight + 12 * accts.size()-1 );
|
||||||
|
Reference in New Issue
Block a user