Diagrameditor / view, revamp the way to edit selection.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3331 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2014-09-25 09:44:41 +00:00
parent 69f239d197
commit 016f24dcda
3 changed files with 10 additions and 53 deletions

View File

@@ -1575,14 +1575,7 @@ void QETDiagramEditor::slot_editSelection() {
if (DiagramView *dv = currentDiagram()) {
DiagramContent dc = dv -> diagram() -> selectedContent();
if (dc.count(DiagramContent::SelectedOnly | DiagramContent::All) != 1) return;
if (dc.count(DiagramContent::Elements)) {
findSelectedElementInPanel();
editSelectedElementInEditor();
}
else if (dc.count(DiagramContent::TextFields)) dv -> editText();
else if (dc.count(DiagramContent::Images)) dv -> editImage();
else if (dc.count(DiagramContent::Shapes)) dv -> editShape();
dv->editSelection();
}
}