QKeySequence::operator QString() is obsolete in Qt5. Use toString(QKeySequence::NativeText) instead.
This change is Qt4/Qt5 neutral.
This commit is contained in:
committed by
wmayer
parent
f48f0f69be
commit
78b16b2bf0
@@ -324,7 +324,7 @@ void Workbench::setupCustomShortcuts() const
|
||||
// may be UTF-8 encoded
|
||||
QString str = QString::fromUtf8(it->second.c_str());
|
||||
QKeySequence shortcut = str;
|
||||
cmd->getAction()->setShortcut(shortcut);
|
||||
cmd->getAction()->setShortcut(shortcut.toString(QKeySequence::NativeText));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user