setCurrentIndex instead of select to allow better navigation
This commit is contained in:
parent
405c0ecce9
commit
8f905ad139
@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||||||
ui->treeView->expandAll();
|
ui->treeView->expandAll();
|
||||||
|
|
||||||
ui->treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
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)
|
for (int c = 0; c < model->columnCount(); ++c)
|
||||||
ui->treeView->resizeColumnToContents(c);
|
ui->treeView->resizeColumnToContents(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user