mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
* No more sizeHint-roles in PlayableModel.
This commit is contained in:
@@ -144,9 +144,6 @@ PlayableModel::parent( const QModelIndex& child ) const
|
|||||||
QVariant
|
QVariant
|
||||||
PlayableModel::artistData( const artist_ptr& artist, int role ) const
|
PlayableModel::artistData( const artist_ptr& artist, int role ) const
|
||||||
{
|
{
|
||||||
if ( role == Qt::SizeHintRole )
|
|
||||||
return QSize( 0, 44 );
|
|
||||||
|
|
||||||
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
@@ -157,9 +154,6 @@ PlayableModel::artistData( const artist_ptr& artist, int role ) const
|
|||||||
QVariant
|
QVariant
|
||||||
PlayableModel::albumData( const album_ptr& album, int role ) const
|
PlayableModel::albumData( const album_ptr& album, int role ) const
|
||||||
{
|
{
|
||||||
if ( role == Qt::SizeHintRole )
|
|
||||||
return QSize( 0, 32 );
|
|
||||||
|
|
||||||
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
@@ -170,9 +164,6 @@ PlayableModel::albumData( const album_ptr& album, int role ) const
|
|||||||
QVariant
|
QVariant
|
||||||
PlayableModel::queryData( const query_ptr& query, int column, int role ) const
|
PlayableModel::queryData( const query_ptr& query, int column, int role ) const
|
||||||
{
|
{
|
||||||
if ( role == Qt::SizeHintRole )
|
|
||||||
return QSize( 0, 18 );
|
|
||||||
|
|
||||||
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
if ( role != Qt::DisplayRole ) // && role != Qt::ToolTipRole )
|
||||||
return QVariant();
|
return QVariant();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user