Show marked files in file list bold

This commit is contained in:
2022-06-04 15:59:51 +02:00
parent dbb533176c
commit c8a70d22f8
3 changed files with 31 additions and 3 deletions
+5 -1
View File
@@ -45,6 +45,8 @@ protected slots:
typedef std::shared_ptr<Image> ImagePtr;
class Database;
class ImageRingList : public QAbstractItemModel
{
Q_OBJECT
@@ -57,8 +59,9 @@ class ImageRingList : public QAbstractItemModel
bool m_liveMode;
AnalyzeLevel m_analyzeLevel;
QThreadPool *m_thumbPool;
Database *m_database;
public:
explicit ImageRingList(QObject *parent = 0);
explicit ImageRingList(Database *database, QObject *parent = 0);
~ImageRingList() override;
bool setDir(const QString path, const QString &currentFile = QString());
void setFile(const QString &file);
@@ -75,6 +78,7 @@ public:
void stopLoading();
int imageCount() const;
QStringList imageNames() const;
void updateMark();
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &child) const override;