Skip to content

Commit c7add88

Browse files
committed
qt: Use | instead of + for key modifiers
This change is preparation for Qt 6 where `+` has been deprecated, and it fixes an experimental build with Qt 6.2.4.
1 parent 6f1e162 commit c7add88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qt/bitcoingui.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ void BitcoinGUI::createActions()
356356
showHelpMessageAction->setStatusTip(tr("Show the %1 help message to get a list with possible Bitcoin command-line options").arg(PACKAGE_NAME));
357357

358358
m_mask_values_action = new QAction(tr("&Mask values"), this);
359-
m_mask_values_action->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_M));
359+
m_mask_values_action->setShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_M));
360360
m_mask_values_action->setStatusTip(tr("Mask the values in the Overview tab"));
361361
m_mask_values_action->setCheckable(true);
362362

@@ -427,8 +427,8 @@ void BitcoinGUI::createActions()
427427
}
428428
#endif // ENABLE_WALLET
429429

430-
connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C), this), &QShortcut::activated, this, &BitcoinGUI::showDebugWindowActivateConsole);
431-
connect(new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_D), this), &QShortcut::activated, this, &BitcoinGUI::showDebugWindow);
430+
connect(new QShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_C), this), &QShortcut::activated, this, &BitcoinGUI::showDebugWindowActivateConsole);
431+
connect(new QShortcut(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_D), this), &QShortcut::activated, this, &BitcoinGUI::showDebugWindow);
432432
}
433433

434434
void BitcoinGUI::createMenuBar()

0 commit comments

Comments
 (0)