diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2020-04-04 15:44:24 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-04-07 10:41:04 +0000 |
commit | 1fbbcf2126250c23afe7e4c7c19d64184fcd7249 (patch) | |
tree | 63f237c7ce63da938ec72fbbbafbc9591777b92b /src | |
parent | 961b298e309bdf5d6ad969edc369299f15450538 (diff) |
clang-tidy: Fix 'bugprone-suspicious-enum-usage' warnings
Also, treat those as errors
Change-Id: I239b0a0597f56b87bcfdc139545b98c119232fdf
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/app/config-ui/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/config-ui/mainwindow.cpp b/src/app/config-ui/mainwindow.cpp index 2bf7fad5e..febf170a2 100644 --- a/src/app/config-ui/mainwindow.cpp +++ b/src/app/config-ui/mainwindow.cpp @@ -119,10 +119,10 @@ MainWindow::MainWindow(const QString &settingsDir, qbs::Settings::Scope scope, Q saveAction->setShortcut(QKeySequence::Save); connect(saveAction, &QAction::triggered, this, &MainWindow::saveSettings); const auto expandAllAction = new QAction(tr("&Expand All"), this); - expandAllAction->setShortcut(Qt::CTRL | Qt::Key_E); + expandAllAction->setShortcut(int(Qt::CTRL) | int(Qt::Key_E)); connect(expandAllAction, &QAction::triggered, this, &MainWindow::expandAll); const auto collapseAllAction = new QAction(tr("C&ollapse All"), this); - collapseAllAction->setShortcut(Qt::CTRL | Qt::Key_O); + collapseAllAction->setShortcut(int(Qt::CTRL) | int(Qt::Key_O)); connect(collapseAllAction, &QAction::triggered, this, &MainWindow::collapseAll); const auto exitAction = new QAction(tr("E&xit"), this); exitAction->setShortcut(QKeySequence::Quit); |