forked from qt-creator/qt-creator
AnalyzerBase: Select whole rows for previous/next actions
in analyzeroutputpane. Initial-patch-by: Kevin Funk <kevin.funk@kdab.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user