khotkeys: do not rely on the QString operator for QKeySequence

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2016-09-30 02:47:23 +00:00
parent 1320b24954
commit b6a34535bf

View file

@ -149,7 +149,7 @@ QString KHotKeysModule::get_menuentry_shortcut(const QString &storageId)
Q_ASSERT(shortcutTrigger);
if (shortcutTrigger == NULL) return "";
return shortcutTrigger->shortcut().primary();
return shortcutTrigger->shortcut().primary().toString();
}
@ -197,7 +197,7 @@ QString KHotKeysModule::register_menuentry_shortcut(
_settings.write();
// Return the real shortcut
return newAction->trigger()->shortcut().primary();
return newAction->trigger()->shortcut().primary().toString();
}
// We found a action
else
@ -224,7 +224,7 @@ QString KHotKeysModule::register_menuentry_shortcut(
_settings.write();
// Remove the resulting real shortcut
return shortcutTrigger->shortcut().primary();
return shortcutTrigger->shortcut().primary().toString();
}
}