mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Load project from xml is a little more faster
Like previous commit, in the method loadDiadrams() we call the method diagramAdded(), in this method we call rebuildDiagramsMap() updateAllTabsTitle() and these methods operate a loop for each existing DiagramView. Now loadDiagrams don't call diagramAdded (which must be used only when user add a diagram during the use of QElectroTech) but make operations itself and when all DiagramView are added, call rebuildDiagramsMap() updateAllTabsTitle() only once.
This commit is contained in:
@@ -87,10 +87,14 @@ class ProjectView : public QWidget
|
||||
private:
|
||||
ProjectView(const ProjectView &);
|
||||
|
||||
//Method related to construction of this class
|
||||
void setProject(QETProject *project);
|
||||
|
||||
|
||||
|
||||
// methods
|
||||
public:
|
||||
QETProject *project();
|
||||
void setProject(QETProject *);
|
||||
QList<DiagramView *> diagram_views() const;
|
||||
DiagramView *currentDiagram() const;
|
||||
void closeEvent(QCloseEvent *) override;
|
||||
|
||||
Reference in New Issue
Block a user