aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditor.cpp
diff options
context:
space:
mode:
authorJochen Becher <jochen_becher@gmx.de>2016-02-16 21:48:50 +0100
committerJochen Becher <jochen_becher@gmx.de>2016-02-18 16:35:51 +0000
commit84761ec9f2ecafc403eb0e304b89a605e5d9a7d7 (patch)
tree32817d8cbc126cd460e78e1eef38c5937676cfc7 /src/plugins/modeleditor/modeleditor.cpp
parentbd319da256e613aa2ecb92a5ab658f54e92085bc (diff)
ModelEditor: Add UI for custom configuration path
Change-Id: I66fd8a8d89f2a75157d6bf4f6de2a81cc2c93aea Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/modeleditor/modeleditor.cpp')
-rw-r--r--src/plugins/modeleditor/modeleditor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/modeleditor/modeleditor.cpp b/src/plugins/modeleditor/modeleditor.cpp
index c839cb915de..6c8c12684e8 100644
--- a/src/plugins/modeleditor/modeleditor.cpp
+++ b/src/plugins/modeleditor/modeleditor.cpp
@@ -31,6 +31,7 @@
#include "editordiagramview.h"
#include "elementtasks.h"
#include "extdocumentcontroller.h"
+#include "extpropertiesmview.h"
#include "modeldocument.h"
#include "modeleditor_constants.h"
#include "modeleditor_plugin.h"
@@ -339,6 +340,11 @@ void ModelEditor::initDocument()
d->propertiesView->setModelController(documentController->modelController());
d->propertiesView->setStereotypeController(documentController->stereotypeController());
d->propertiesView->setStyleController(documentController->styleController());
+ d->propertiesView->setMViewFactory([=](qmt::PropertiesView *view) {
+ auto extView = new ExtPropertiesMView(view);
+ extView->setProjectController(documentController->projectController());
+ return extView;
+ });
d->modelTreeView->setTreeModel(documentController->sortedTreeModel());
d->modelTreeView->setElementTasks(documentController->elementTasks());