forked from qt-creator/qt-creator
ModelEditor: Support custom relations in configuration files
Change-Id: I87338f290bd1ea729682236df8b017516a18e7bb Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -71,6 +71,8 @@ void ConfigController::readStereotypeDefinitions(const QString &path)
|
||||
StereotypeDefinitionParser parser;
|
||||
connect(&parser, &StereotypeDefinitionParser::iconParsed,
|
||||
this, &ConfigController::onStereotypeIconParsed);
|
||||
connect(&parser, &StereotypeDefinitionParser::relationParsed,
|
||||
this, &ConfigController::onRelationParsed);
|
||||
connect(&parser, &StereotypeDefinitionParser::toolbarParsed,
|
||||
this, &ConfigController::onToolbarParsed);
|
||||
|
||||
@@ -116,6 +118,11 @@ void ConfigController::onStereotypeIconParsed(const StereotypeIcon &stereotypeIc
|
||||
d->m_stereotypeController->addStereotypeIcon(stereotypeIcon);
|
||||
}
|
||||
|
||||
void ConfigController::onRelationParsed(const CustomRelation &customRelation)
|
||||
{
|
||||
d->m_stereotypeController->addCustomRelation(customRelation);
|
||||
}
|
||||
|
||||
void ConfigController::onToolbarParsed(const Toolbar &toolbar)
|
||||
{
|
||||
d->m_stereotypeController->addToolbar(toolbar);
|
||||
|
||||
Reference in New Issue
Block a user