QKeySequence::operator QString() is obsolete in Qt5. Use toString(QKeySequence::NativeText) instead.

This change is Qt4/Qt5 neutral.
This commit is contained in:
Mateusz Skowroński
2015-12-23 20:51:01 +01:00
committed by wmayer
parent 3b463f2138
commit 9beb7d21f3
2 changed files with 7 additions and 6 deletions

View File

@@ -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));
}
}
}