mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-08 08:29:59 +01:00
ElementsCollectionModel : model use multithreading itself for load collections
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4576 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -41,6 +41,8 @@ class ElementsCollectionModel : public QStandardItemModel
|
||||
virtual bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const;
|
||||
virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
||||
|
||||
void loadCollections(bool common_collection, bool custom_collection, QList<QETProject *> projects);
|
||||
|
||||
void addCommonCollection(bool set_data = true);
|
||||
void addCustomCollection(bool set_data = true);
|
||||
void addLocation(ElementsLocation location);
|
||||
@@ -56,6 +58,10 @@ class ElementsCollectionModel : public QStandardItemModel
|
||||
bool isHideElement() {return m_hide_element;}
|
||||
QModelIndex indexFromLocation(const ElementsLocation &location);
|
||||
|
||||
signals:
|
||||
void loadingMaxValue(int);
|
||||
void loadingProgressValue(int);
|
||||
|
||||
private:
|
||||
void elementIntegratedToCollection (QString path);
|
||||
void itemRemovedFromCollection (QString path);
|
||||
|
||||
Reference in New Issue
Block a user