Only show last part of filename
This commit is contained in:
parent
ec7f6181c2
commit
e79f7a53f3
1 changed files with 4 additions and 2 deletions
|
@ -75,8 +75,10 @@ QVariant ArtModel::data(const QModelIndex &index, const int role) const
|
|||
|
||||
if (role == Qt::DisplayRole) {
|
||||
switch (index.column()) {
|
||||
case 0:
|
||||
return m_artPieces[index.row()].filename;
|
||||
case 0: {
|
||||
const QString filename = m_artPieces[index.row()].filename;
|
||||
return filename.split('/').last();
|
||||
}
|
||||
case 1:
|
||||
return {};
|
||||
case 2:
|
||||
|
|
Loading…
Add table
Reference in a new issue