Measure: Use QStringLiteral
This commit is contained in:
@@ -245,7 +245,7 @@ void QuickMeasure::printResult()
|
||||
print(tr("Minimum distance: %1").arg(lengthStr(measurement->length())));
|
||||
}
|
||||
else {
|
||||
print(QString::fromLatin1(""));
|
||||
print(QStringLiteral(""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()));
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user