Improve loading time

This commit is contained in:
Claveau Joshua
2020-01-23 10:45:14 +01:00
parent f297e28b64
commit f8dcdec735
2 changed files with 31 additions and 12 deletions

View File

@@ -41,6 +41,7 @@ class FileElementCollectionItem : public ElementCollectionItem
bool isDir() const override;
bool isElement() const override;
QString localName() override;
QString localName(const ElementsLocation &location);
QString name() const override;
QString collectionPath() const override;
bool isCollectionRoot() const override;
@@ -51,16 +52,12 @@ class FileElementCollectionItem : public ElementCollectionItem
void setUpData() override;
void setUpIcon() override;
void hire();
private:
void setPathName(const QString& path_name, bool set_data = true, bool hide_element = false);
void populate(bool set_data = true, bool hide_element = false);
private:
QString m_path;
ElementsLocation m_location;
};
#endif // FILEELEMENTCOLLECTIONITEM2_H