Disable expandsOnDoubleClick for Functions widget. (#3172)

closes #2788
This commit is contained in:
Lucas Hosseini 2023-05-09 03:49:43 +02:00 committed by GitHub
parent 882f340481
commit b63ea5b3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -508,6 +508,7 @@ FunctionsWidget::FunctionsWidget(MainWindow *main)
functionProxyModel = new FunctionSortFilterProxyModel(functionModel, this); functionProxyModel = new FunctionSortFilterProxyModel(functionModel, this);
setModels(functionProxyModel); setModels(functionProxyModel);
ui->treeView->sortByColumn(FunctionModel::NameColumn, Qt::AscendingOrder); ui->treeView->sortByColumn(FunctionModel::NameColumn, Qt::AscendingOrder);
ui->treeView->setExpandsOnDoubleClick(false);
titleContextMenu = new QMenu(this); titleContextMenu = new QMenu(this);
auto viewTypeGroup = new QActionGroup(titleContextMenu); auto viewTypeGroup = new QActionGroup(titleContextMenu);