diff options
Diffstat (limited to 'examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp')
-rw-r--r-- | examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp index 090d4a1f..6da737fd 100644 --- a/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp +++ b/examples/uml/duse-mt/src/plugins/modelinspector/modelinspectorplugin.cpp @@ -83,7 +83,9 @@ bool ModelInspectorPlugin::initialize(DuSE::ICore *core) connect(core->projectController(), SIGNAL(modelOpened(QList<QModelingObject*>)), _modelingObjectModel, SLOT(setModelingObjects(QList<QModelingObject*>))); connect(core->projectController(), SIGNAL(modelOpened(QList<QModelingObject*>)), this, SLOT(populateOutputIssues())); connect(_modelingObjectView, &QModelingObjectView::modelingObjectChanged, _propertyModel, &QModelingObjectPropertyModel::setModelingObject); + connect(_modelingObjectView, SIGNAL(modelingObjectChanged(QModelingObject*)), core->uiController(), SIGNAL(currentModelingObjectChanged(QModelingObject*))); connect(_propertyModel, &QModelingObjectPropertyModel::indexChanged, _modelingObjectModel, &QModelingObjectModel::updateIndex); + connect(core->uiController(), SIGNAL(updateCurrentModelingObject()), this, SLOT(updateCurrentModelingObject())); return true; } @@ -93,3 +95,8 @@ void ModelInspectorPlugin::populateOutputIssues() _outputIssues->setModel(new QStringListModel(DuSE::ICore::self()->projectController()->errorStrings())); } +void ModelInspectorPlugin::updateCurrentModelingObject() +{ + _modelingObjectView->updateSelected(); +} + |