mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Merge pull request #9987 from Filoppi/patch-15
Preserve spaces in mapping preview of control names
This commit is contained in:
commit
c68bd518c3
1 changed files with 4 additions and 1 deletions
|
@ -50,12 +50,15 @@ static QString RefToDisplayString(ControlReference* ref)
|
||||||
controls[i] = qualifier.has_device ? QStringLiteral(":") : QString();
|
controls[i] = qualifier.has_device ? QStringLiteral(":") : QString();
|
||||||
controls[i].append(QString::fromStdString(qualifier.control_name));
|
controls[i].append(QString::fromStdString(qualifier.control_name));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
controls[i].remove(QLatin1Char{' '});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Do not re-add "`" to the final string, we don't need to see it.
|
// Do not re-add "`" to the final string, we don't need to see it.
|
||||||
expression = controls.join(QStringLiteral(""));
|
expression = controls.join(QStringLiteral(""));
|
||||||
|
|
||||||
expression.remove(QLatin1Char{' '});
|
|
||||||
expression.remove(QLatin1Char{'\t'});
|
expression.remove(QLatin1Char{'\t'});
|
||||||
expression.remove(QLatin1Char{'\n'});
|
expression.remove(QLatin1Char{'\n'});
|
||||||
expression.remove(QLatin1Char{'\r'});
|
expression.remove(QLatin1Char{'\r'});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue