1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-21 18:57:14 +01:00

Fixes #2360 (modifies fix for #2219). Just make sure the object

is visible, but not necessarily centered.  Otherwise with a wide
tab for "Object" (but only some of the tab is visible) the text
might not be visible at all.
This commit is contained in:
Theron Tock 2011-04-28 11:02:28 -07:00
parent 57a195538b
commit 28a7eeb014

View File

@ -1245,7 +1245,7 @@ void ObjectManipulator::showObjectInTree(ObjectTreeViewItem *otvi)
m_objectManipulator->widgetStack->setCurrentWidget(otv);
otvi->getTree()->clearSelection();
otvi->getTree()->scrollToItem(otvi, QAbstractItemView::PositionAtCenter);
otvi->getTree()->scrollToItem(otvi);
otvi->getTree()->setCurrentItem(otvi);
otvi->setSelected(true);
otvi->getTree()->setFocus(Qt::OtherFocusReason);