mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-24 20:27:22 +01: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:
parent
6b7d1f5806
commit
33070886db
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user