Change the way how a diagram is added

Now it's the project itself who manage the adding of diagram instead of
the diagram view, it's more coherent
This commit is contained in:
Claveau Joshua
2020-05-24 16:24:39 +02:00
parent edfdf83c99
commit 7ea42752a4
6 changed files with 111 additions and 127 deletions

View File

@@ -98,9 +98,7 @@ class ProjectView : public QWidget
void changeLastTab();
public slots:
void addNewDiagram();
void addNewDiagramFolioList();
void addDiagram(DiagramView *);
void removeDiagram(DiagramView *);
void removeDiagram(Diagram *);
void showDiagram(DiagramView *);
@@ -162,10 +160,11 @@ class ProjectView : public QWidget
void tabDoubleClicked(int);
void setDisplayFallbackWidget(bool);
void adjustReadOnlyState();
void diagramAdded(Diagram *diagram);
// attributes
private:
QAction *add_new_diagram_;
QAction *m_add_new_diagram;
QETProject *m_project;
QVBoxLayout *layout_;
QWidget *fallback_widget_;