Draw file name under thumbnail

This commit is contained in:
2022-05-09 22:56:06 +02:00
parent b84d8127ad
commit 94466a6b9b
7 changed files with 52 additions and 44 deletions
+8
View File
@@ -257,6 +257,14 @@ int ImageRingList::imageCount() const
return m_images.size();
}
QStringList ImageRingList::imageNames() const
{
QStringList ret;
for(auto &img : m_images)
ret.push_back(QFileInfo(img->name()).fileName());
return ret;
}
QModelIndex ImageRingList::index(int row, int column, const QModelIndex &parent) const
{
return createIndex(row, column, m_images.at(row).get());