Merge pull request #9987 from Filoppi/patch-15
Preserve spaces in mapping preview of control names
This commit is contained in:
commit
c68bd518c3
|
@ -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…
Reference in New Issue