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) {
|
if (role == Qt::DisplayRole) {
|
||||||
switch (index.column()) {
|
switch (index.column()) {
|
||||||
case 0:
|
case 0: {
|
||||||
return m_artPieces[index.row()].filename;
|
const QString filename = m_artPieces[index.row()].filename;
|
||||||
|
return filename.split('/').last();
|
||||||
|
}
|
||||||
case 1:
|
case 1:
|
||||||
return {};
|
return {};
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Add table
Reference in a new issue