mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
khotkeys: do not rely on the QString operator for QKeySequence
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
1320b24954
commit
b6a34535bf
1 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ QString KHotKeysModule::get_menuentry_shortcut(const QString &storageId)
|
||||||
Q_ASSERT(shortcutTrigger);
|
Q_ASSERT(shortcutTrigger);
|
||||||
if (shortcutTrigger == NULL) return "";
|
if (shortcutTrigger == NULL) return "";
|
||||||
|
|
||||||
return shortcutTrigger->shortcut().primary();
|
return shortcutTrigger->shortcut().primary().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ QString KHotKeysModule::register_menuentry_shortcut(
|
||||||
_settings.write();
|
_settings.write();
|
||||||
|
|
||||||
// Return the real shortcut
|
// Return the real shortcut
|
||||||
return newAction->trigger()->shortcut().primary();
|
return newAction->trigger()->shortcut().primary().toString();
|
||||||
}
|
}
|
||||||
// We found a action
|
// We found a action
|
||||||
else
|
else
|
||||||
|
@ -224,7 +224,7 @@ QString KHotKeysModule::register_menuentry_shortcut(
|
||||||
_settings.write();
|
_settings.write();
|
||||||
|
|
||||||
// Remove the resulting real shortcut
|
// Remove the resulting real shortcut
|
||||||
return shortcutTrigger->shortcut().primary();
|
return shortcutTrigger->shortcut().primary().toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue