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:
blacksun
2019-03-04 15:34:42 +00:00
parent 30d4ea6477
commit aaba90419f
4 changed files with 430 additions and 105 deletions

View File

@@ -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;
}