TechDraw: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 17:51:41 +01:00
parent 97b9b6de89
commit 9a8bdbaf9f
41 changed files with 250 additions and 250 deletions

View File

@@ -438,9 +438,9 @@ void QGIViewBalloon::updateBalloon(bool obtuse)
if (strcmp(balloon->BubbleShape.getValueAsString(), "Rectangle") == 0) {
std::vector<int> newSeps;
while (labelText.contains(QString::fromUtf8("|"))) {
int pos = labelText.indexOf(QString::fromUtf8("|"));
labelText.replace(pos, 1, QString::fromUtf8(" "));
while (labelText.contains(QStringLiteral("|"))) {
int pos = labelText.indexOf(QStringLiteral("|"));
labelText.replace(pos, 1, QStringLiteral(" "));
QFontMetrics fm(balloonLabel->getFont());
newSeps.push_back(Gui::QtTools::horizontalAdvance(fm, labelText.left(pos + 2)));
balloonLabel->setVerticalSep(true);