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
3b463f2138
commit
9beb7d21f3
@@ -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