mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Fix all compilation issues after enabling QT_DISABLE_DEPRECATED_UP_TO
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
#include <QAction>
|
||||
#include <QSettings>
|
||||
|
||||
#include <utility>
|
||||
|
||||
ShortcutsManager::ShortcutsManager()
|
||||
{
|
||||
initDefaultShorcuts();
|
||||
@ -127,7 +129,7 @@ bool ShortcutsManager::checkConflicts(const QKeySequence &shortcut, const QActio
|
||||
if (shortcut.isEmpty())
|
||||
return false;
|
||||
|
||||
foreach (QAction *action, actions) {
|
||||
for (QAction *action : std::as_const(actions)) {
|
||||
if (action != dest) // if the same shortcut is setted there is no conflict
|
||||
if (action->shortcut() == shortcut)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user