Draw file name under thumbnail
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user