Re-enable the button "find element in panel".

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4953 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-05-01 11:42:55 +00:00
parent 0e003b27a5
commit a12198294f
3 changed files with 23 additions and 8 deletions

View File

@@ -115,6 +115,19 @@ void ElementsCollectionWidget::highlightUnusedElement()
m_model->highlightUnusedElement();
}
/**
* @brief ElementsCollectionWidget::setCurrentLocation
* Set the current item to be the item for @location
* @param location
*/
void ElementsCollectionWidget::setCurrentLocation(const ElementsLocation &location)
{
if (!location.exist())
return;
m_tree_view->setCurrentIndex(m_model->indexFromLocation(location));
}
bool ElementsCollectionWidget::event(QEvent *event)
{
if (m_first_show && event->type() == QEvent::WindowActivate) {