Automatically expand all the trees

This commit is contained in:
Simon Quigley 2025-02-11 21:29:34 -06:00
parent ae5a4cd5e0
commit ad8dd0b5f9

View File

@ -267,6 +267,10 @@ void NetworkSelector::regenConnTree()
ui->deleteConnButton->setEnabled(false);
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);
}