mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-03 19:10:53 +01:00
Diagram editor : dock used to edit the shape item, can now edit several items in the same time
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5756 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -165,16 +165,14 @@ void DiagramPropertiesEditorDockWidget::selectionChanged()
|
||||
}
|
||||
case QetShapeItem::Type: //1008
|
||||
{
|
||||
if (count_ > 1)
|
||||
{
|
||||
clear();
|
||||
m_edited_qgi_type = -1;
|
||||
return;
|
||||
QList<QetShapeItem *> shapes_list;
|
||||
for (QGraphicsItem *qgi : m_diagram->selectedItems()) {
|
||||
shapes_list.append(static_cast<QetShapeItem*>(qgi));
|
||||
}
|
||||
|
||||
|
||||
if (m_edited_qgi_type == type_)
|
||||
{
|
||||
static_cast<ShapeGraphicsItemPropertiesWidget*>(editors().first())->setItem(static_cast<QetShapeItem*>(item));
|
||||
static_cast<ShapeGraphicsItemPropertiesWidget*>(editors().first())->setItems(shapes_list);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user