forked from qt-creator/qt-creator
ModelEditor: Remove code duplication in action handler
Change-Id: I7d4beff0c0408c0ef8655953434c9d324fb452cc Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -569,7 +569,17 @@ void ModelEditor::editSelectedItem()
|
||||
onEditSelectedElement();
|
||||
}
|
||||
|
||||
void ModelEditor::exportDiagram(bool selectedElements)
|
||||
void ModelEditor::exportDiagram()
|
||||
{
|
||||
exportToImage(/*selectedElements=*/false);
|
||||
}
|
||||
|
||||
void ModelEditor::exportSelectedElements()
|
||||
{
|
||||
exportToImage(/*selectedElements=*/true);
|
||||
}
|
||||
|
||||
void ModelEditor::exportToImage(bool selectedElements)
|
||||
{
|
||||
qmt::MDiagram *diagram = currentDiagram();
|
||||
if (diagram) {
|
||||
|
||||
Reference in New Issue
Block a user