Skip to content
Permalink
Browse files
Merge pull request #9987 from Filoppi/patch-15
Preserve spaces in mapping preview of control names
  • Loading branch information
leoetlino committed Aug 4, 2021
2 parents 893b648 + a99932d commit c68bd51
Showing 1 changed file with 4 additions and 1 deletion.
@@ -50,12 +50,15 @@ static QString RefToDisplayString(ControlReference* ref)
controls[i] = qualifier.has_device ? QStringLiteral(":") : QString();
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.
expression = controls.join(QStringLiteral(""));

expression.remove(QLatin1Char{' '});
expression.remove(QLatin1Char{'\t'});
expression.remove(QLatin1Char{'\n'});
expression.remove(QLatin1Char{'\r'});

0 comments on commit c68bd51

Please sign in to comment.