diff options
| author | Laurent Montel <[email protected]> | 2020-12-09 07:55:44 +0100 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2020-12-09 07:55:44 +0100 |
| commit | d2f044b32d34023fbf4755b95dcafe71ed00b55f (patch) | |
| tree | fbed81194ab35a845ebde19d9a93b80a2ebb3393 /src/dolphinpart.cpp | |
| parent | ce3c2435250f5eb8a3c9322359b25c46d2b6fb96 (diff) | |
operator+/- is disabled for QFlags in qt6
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index 18b3bbd0c..00c99efd0 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -165,7 +165,7 @@ void DolphinPart::createActions() QAction* selectItemsMatching = actionCollection()->addAction(QStringLiteral("select_items_matching")); selectItemsMatching->setText(i18nc("@action:inmenu Edit", "Select Items Matching...")); - actionCollection()->setDefaultShortcut(selectItemsMatching, Qt::CTRL + Qt::Key_S); + actionCollection()->setDefaultShortcut(selectItemsMatching, Qt::CTRL | Qt::Key_S); connect(selectItemsMatching, &QAction::triggered, this, &DolphinPart::slotSelectItemsMatchingPattern); QAction* unselectItemsMatching = actionCollection()->addAction(QStringLiteral("unselect_items_matching")); @@ -180,7 +180,7 @@ void DolphinPart::createActions() QAction* invertSelection = actionCollection()->addAction(QStringLiteral("invert_selection")); invertSelection->setText(i18nc("@action:inmenu Edit", "Invert Selection")); - actionCollection()->setDefaultShortcut(invertSelection, Qt::CTRL + Qt::SHIFT + Qt::Key_A); + actionCollection()->setDefaultShortcut(invertSelection, Qt::CTRL | Qt::SHIFT | Qt::Key_A); connect(invertSelection, &QAction::triggered, m_view, &DolphinView::invertSelection); // View menu: all done by DolphinViewActionHandler |
