setCurrentIndex instead of select to allow better navigation
This commit is contained in:
parent
405c0ecce9
commit
8f905ad139
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
ui->treeView->expandAll();
|
||||
|
||||
ui->treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
ui->treeView->selectionModel()->select(model->findFocusedWindowIndex(), QItemSelectionModel::ClearAndSelect);
|
||||
ui->treeView->selectionModel()->setCurrentIndex(model->findFocusedWindowIndex(), QItemSelectionModel::ClearAndSelect);
|
||||
|
||||
for (int c = 0; c < model->columnCount(); ++c)
|
||||
ui->treeView->resizeColumnToContents(c);
|
||||
|
|
Loading…
Reference in a new issue