mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-15 01:19:29 +02:00
fixes #2219 when object is double clicked in rules to select it in the tree, the tree scrolls so that this object is at the top
This commit is contained in:
@@ -1256,7 +1256,7 @@ void ObjectManipulator::showObjectInTree(ObjectTreeViewItem *otvi)
|
||||
m_objectManipulator->widgetStack->setCurrentWidget(otv);
|
||||
|
||||
otvi->getTree()->clearSelection();
|
||||
otvi->getTree()->scrollToItem(otvi, QAbstractItemView::PositionAtTop);
|
||||
otvi->getTree()->scrollToItem(otvi, QAbstractItemView::PositionAtCenter);
|
||||
otvi->getTree()->setCurrentItem(otvi);
|
||||
otvi->setSelected(true);
|
||||
otvi->getTree()->setFocus(Qt::OtherFocusReason);
|
||||
|
||||
Reference in New Issue
Block a user