mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
show name when editing first
This commit is contained in:
@@ -77,6 +77,7 @@ SourcesModel::data( const QModelIndex& index, int role ) const
|
|||||||
case SourceTreeItemTypeRole:
|
case SourceTreeItemTypeRole:
|
||||||
return itemFromIndex( index )->type();
|
return itemFromIndex( index )->type();
|
||||||
case Qt::DisplayRole:
|
case Qt::DisplayRole:
|
||||||
|
case Qt::EditRole:
|
||||||
return itemFromIndex( index )->text();
|
return itemFromIndex( index )->text();
|
||||||
case Qt::DecorationRole:
|
case Qt::DecorationRole:
|
||||||
return itemFromIndex( index )->icon();
|
return itemFromIndex( index )->icon();
|
||||||
|
Reference in New Issue
Block a user