Commit e742fd26 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Utils: Replace && with & for button tooltips

&& is used to prevent the following space from becoming a shortcut.

Change-Id: I8143b8ee193a2f2ffc391375e75d8a0fb26e8e09
Reviewed-by: default avatarEike Ziller <>
parent 6f91d777
......@@ -174,6 +174,8 @@ void ProxyAction::updateToolTipWithKeySequence()
QString ProxyAction::stringWithAppendedShortcut(const QString &str, const QKeySequence &shortcut)
QString s = str;
s.replace(QLatin1String("&&"), QLatin1String("&"));
return QString::fromLatin1("%1 <span style=\"color: gray; font-size: small\">%2</span>").
arg(str, shortcut.toString(QKeySequence::NativeText));
arg(s, shortcut.toString(QKeySequence::NativeText));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment