From 437da76793e4279fbeb5b0c74856e17e490c7888 2017-06-30 07:28:28 From: Alexandre Leroux Date: 2017-06-30 07:28:28 Subject: [PATCH] Activates multi-selection on variable widget --- diff --git a/gui/src/Variable/VariableInspectorWidget.cpp b/gui/src/Variable/VariableInspectorWidget.cpp index b83cd4d..997d6b0 100644 --- a/gui/src/Variable/VariableInspectorWidget.cpp +++ b/gui/src/Variable/VariableInspectorWidget.cpp @@ -29,6 +29,10 @@ VariableInspectorWidget::VariableInspectorWidget(QWidget *parent) i, model->headerData(i, Qt::Horizontal, Qt::SizeHintRole).toSize().width()); } + // Sets selection options + ui->tableView->setSelectionBehavior(QTableView::SelectRows); + ui->tableView->setSelectionMode(QTableView::ExtendedSelection); + // Connection to show a menu when right clicking on the tree ui->tableView->setContextMenuPolicy(Qt::CustomContextMenu); connect(ui->tableView, &QTableView::customContextMenuRequested, this,