mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Basic Shapes: Edit property(style) added, undo/redo style added
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2910 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -1272,6 +1272,20 @@ void DiagramView::editImage() {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramView::editShape
|
||||
* open edit image dialog if only one shape is selected
|
||||
*/
|
||||
void DiagramView::editShape() {
|
||||
if (scene -> isReadOnly()) return;
|
||||
QList <QGraphicsItem *> shapes = diagram() -> selectedContent().items(DiagramContent::Shapes);
|
||||
if (shapes.count() != 1) return;
|
||||
QetShapeItem *shape;
|
||||
if ((shape = qgraphicsitem_cast<QetShapeItem *> (shapes.first()))) {
|
||||
shape -> editProperty();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramView::addDiagramImageAtPos
|
||||
* @param pos
|
||||
|
||||
Reference in New Issue
Block a user