Automatically expand all the trees
This commit is contained in:
parent
ae5a4cd5e0
commit
ad8dd0b5f9
@ -267,6 +267,10 @@ void NetworkSelector::regenConnTree()
|
|||||||
ui->deleteConnButton->setEnabled(false);
|
ui->deleteConnButton->setEnabled(false);
|
||||||
|
|
||||||
ui->connTree->setModel(connTreeModel);
|
ui->connTree->setModel(connTreeModel);
|
||||||
|
for (int i = 0; i < connTreeModel->rowCount(); i++) {
|
||||||
|
QModelIndex parent_index = connTreeModel->index(i, 0);
|
||||||
|
ui->connTree->setExpanded(parent_index, true);
|
||||||
|
}
|
||||||
ui->connTree->setColumnWidth(0, 500);
|
ui->connTree->setColumnWidth(0, 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user