From 33070886db10f2fd2368144cec49fede3cfe2fff Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Sat, 12 Mar 2011 18:24:53 -0800 Subject: [PATCH] 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 --- src/libgui/ObjectManipulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libgui/ObjectManipulator.cpp b/src/libgui/ObjectManipulator.cpp index ef0022e43..c3df56f22 100644 --- a/src/libgui/ObjectManipulator.cpp +++ b/src/libgui/ObjectManipulator.cpp @@ -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);