mirror of
https://github.com/YACReader/yacreader
synced 2026-02-02 13:20:08 -05:00
Fix accessing the root folder for setting the library type
This commit is contained in:
@ -76,6 +76,7 @@ public:
|
||||
QStringList getSubfoldersNames(const QModelIndex &mi);
|
||||
FolderModel *getSubfoldersModel(const QModelIndex &mi); // it creates a model that contains just the direct subfolders
|
||||
|
||||
Folder getRootFolder();
|
||||
Folder getFolder(const QModelIndex &mi);
|
||||
QModelIndex getIndexFromFolderId(qulonglong folderId, const QModelIndex &parent = QModelIndex());
|
||||
QModelIndex getIndexFromFolder(const Folder &folder, const QModelIndex &parent = QModelIndex());
|
||||
@ -133,6 +134,8 @@ private:
|
||||
// parent contains the current data in the model (parentModelIndex is its index), updated contains fresh info loaded from the DB,
|
||||
void takeUpdatedChildrenInfo(FolderItem *parent, const QModelIndex &parentModelIndex, FolderItem *updated);
|
||||
|
||||
Folder folderFromItem(FolderItem *item);
|
||||
|
||||
FolderItem *rootItem; // items tree
|
||||
QMap<unsigned long long int, FolderItem *> items; // items lookup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user