mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
Restore the selected index in the folders view when doing partial updates
This commit is contained in:
@ -54,6 +54,7 @@ public:
|
||||
int role = Qt::DisplayRole) const override;
|
||||
QModelIndex index(int row, int column,
|
||||
const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex index(qulonglong folderId) const;
|
||||
QModelIndex parent(const QModelIndex &index) const override;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
@ -61,6 +62,7 @@ public:
|
||||
|
||||
// Convenience methods
|
||||
void reload();
|
||||
void reload(const QModelIndex &index);
|
||||
void setupModelData(QString path);
|
||||
QString getDatabase();
|
||||
QString getFolderPath(const QModelIndex &folder);
|
||||
|
Reference in New Issue
Block a user