Commit 5e5926b0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QAbstractItemView::ExtendedSelection it's better

parent 3b8f29f0
Pipeline #110255 passed with stage
in 14 minutes and 32 seconds
......@@ -27,7 +27,7 @@ ConfirmBeforeDeletingWidget::ConfirmBeforeDeletingWidget(QWidget *parent)
mTreeWidget->setAlternatingRowColors(true);
mTreeWidget->setRootIsDecorated(false);
mTreeWidget->setContextMenuPolicy(Qt::CustomContextMenu);
mTreeWidget->setSelectionMode(QAbstractItemView::MultiSelection);
mTreeWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
const QStringList lst = {i18n("Type"), i18n("Pattern")};
mTreeWidget->setHeaderLabels(lst);
connect(mTreeWidget, &QTreeWidget::customContextMenuRequested, this, &ConfirmBeforeDeletingWidget::slotCustomContextMenuRequested);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment