AnalyzerBase: Select whole rows for previous/next actions

in analyzeroutputpane.

Initial-patch-by: Kevin Funk <kevin.funk@kdab.com>
This commit is contained in:
Friedemann Kleint
2011-03-17 13:48:03 +01:00
parent 7832e821f5
commit f962a71eec

View File

@@ -174,9 +174,11 @@ int ListItemViewOutputPaneAdapter::currentRow() const
void ListItemViewOutputPaneAdapter::setCurrentRow(int r)
{
QTC_ASSERT(m_listView, return; )
QTC_ASSERT(m_listView, return)
const QModelIndex index = m_listView->model()->index(r, 0);
m_listView->selectionModel()->setCurrentIndex(index, QItemSelectionModel::ClearAndSelect|QItemSelectionModel::Current);
m_listView->selectionModel()->setCurrentIndex(index,
QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
m_listView->scrollTo(index);
}