mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Loading elements collections doesn't freeze gui anymore.
This commit is contained in:
@@ -60,8 +60,9 @@ class ElementsCollectionModel : public QStandardItemModel
|
||||
QModelIndex indexFromLocation(const ElementsLocation &location);
|
||||
|
||||
signals:
|
||||
void loadingMaxValue(int);
|
||||
void loadingProgressValue(int);
|
||||
void loadingProgressValueChanged(int);
|
||||
void loadingProgressRangeChanged(int, int);
|
||||
void loadingFinished();
|
||||
|
||||
private:
|
||||
void elementIntegratedToCollection (const QString& path);
|
||||
@@ -72,6 +73,8 @@ class ElementsCollectionModel : public QStandardItemModel
|
||||
QList <QETProject *> m_project_list;
|
||||
QHash <QETProject *, XmlProjectElementCollectionItem *> m_project_hash;
|
||||
bool m_hide_element = false;
|
||||
QFuture<void> m_future;
|
||||
QList <ElementCollectionItem *> m_items_list_to_setUp;
|
||||
};
|
||||
|
||||
#endif // ELEMENTSCOLLECTIONMODEL2_H
|
||||
|
||||
Reference in New Issue
Block a user