Only show last part of filename

This commit is contained in:
Joshua Goins 2023-12-01 15:51:12 -05:00
parent ec7f6181c2
commit e79f7a53f3

View file

@ -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: