nodeviewitem: don't expand if control is held during the double click

This commit is contained in:
itsmattkc
2020-06-11 21:27:18 +10:00
parent aa11fd2d04
commit 23d92df3c8
+3 -1
View File
@@ -559,7 +559,9 @@ void NodeViewItem::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event)
{
QGraphicsRectItem::mouseDoubleClickEvent(event);
SetExpanded(!IsExpanded());
if (!(event->modifiers() & Qt::ControlModifier)) {
SetExpanded(!IsExpanded());
}
}
QVariant NodeViewItem::itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value)