mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user