Provide sub-text for all items in folderview, fixes corruption of list mode.
This commit is contained in:
committed by
craig.p.drummond
parent
7e0be760f6
commit
6d8cd45cb7
@@ -65,6 +65,8 @@
|
||||
40. Add keyboard short-cut for 'back' icon in listviews.
|
||||
41. Fix issue (in Qt-builds) where messge widget sometimes (mainly at start-up)
|
||||
is not not as wide as the main window.
|
||||
42. Provide sub-text for all items in folderview, fixes corruption of list
|
||||
mode.
|
||||
|
||||
0.7.1
|
||||
-----
|
||||
|
||||
@@ -190,7 +190,16 @@ QVariant DirViewModel::data(const QModelIndex &index, int role) const
|
||||
#endif
|
||||
break;
|
||||
case DirViewItem::Type_File:
|
||||
default: return QVariant();
|
||||
if (item->data().endsWith(".asx", Qt::CaseInsensitive) || item->data().endsWith(".m3u", Qt::CaseInsensitive) ||
|
||||
item->data().endsWith(".pls", Qt::CaseInsensitive) || item->data().endsWith(".xspf", Qt::CaseInsensitive) ) {
|
||||
return i18n("Playlist");
|
||||
} else if (item->data().endsWith(".cue", Qt::CaseInsensitive)) {
|
||||
return i18n("Cue Sheet");
|
||||
} else {
|
||||
return i18n("Audio File");
|
||||
}
|
||||
default:
|
||||
return QVariant();
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user