mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-13 10:04:13 +02:00
Merge pull request #706 from ispyisail/fix/search-hit-scroll-bug309
Scroll the diagram view to the selected search hit (bugtracker #309)
This commit is contained in:
@@ -1020,6 +1020,7 @@ void SearchAndReplaceWidget::on_m_tree_widget_currentItemChanged(
|
|||||||
{
|
{
|
||||||
m_highlighted_element = elmt;
|
m_highlighted_element = elmt;
|
||||||
elmt.data()->setHighlighted(true);
|
elmt.data()->setHighlighted(true);
|
||||||
|
elmt.data()->ensureVisible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_text_hash.contains(current))
|
else if (m_text_hash.contains(current))
|
||||||
@@ -1029,6 +1030,7 @@ void SearchAndReplaceWidget::on_m_tree_widget_currentItemChanged(
|
|||||||
{
|
{
|
||||||
text.data()->setSelected(true);
|
text.data()->setSelected(true);
|
||||||
m_last_selected = text;
|
m_last_selected = text;
|
||||||
|
text.data()->ensureVisible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (m_conductor_hash.contains(current))
|
else if (m_conductor_hash.contains(current))
|
||||||
@@ -1038,6 +1040,7 @@ void SearchAndReplaceWidget::on_m_tree_widget_currentItemChanged(
|
|||||||
{
|
{
|
||||||
cond.data()->setSelected(true);
|
cond.data()->setSelected(true);
|
||||||
m_last_selected = cond;
|
m_last_selected = cond;
|
||||||
|
cond.data()->ensureVisible();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user