Measure: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:18:41 +01:00
parent 4ed902e07f
commit b0b62f3f26
3 changed files with 3 additions and 3 deletions

View File

@@ -245,7 +245,7 @@ void QuickMeasure::printResult()
print(tr("Minimum distance: %1").arg(lengthStr(measurement->length())));
}
else {
print(QString::fromLatin1(""));
print(QStringLiteral(""));
}
}

View File

@@ -119,7 +119,7 @@ TaskMeasure::TaskMeasure()
// Create mode dropdown and add all registered measuretypes
modeSwitch = new QComboBox();
modeSwitch->addItem(QString::fromLatin1("Auto"));
modeSwitch->addItem(QStringLiteral("Auto"));
for (App::MeasureType* mType : App::MeasureManager::getMeasureTypes()) {
modeSwitch->addItem(QString::fromLatin1(mType->label.c_str()));

View File

@@ -268,7 +268,7 @@ void ViewProviderMeasureBase::setLabelValue(const Base::Quantity& value)
void ViewProviderMeasureBase::setLabelValue(const QString& value)
{
auto lines = value.split(QString::fromLatin1("\n"));
auto lines = value.split(QStringLiteral("\n"));
int i = 0;
for (auto& it : lines) {