Commit dd4b581d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port QLatin1Literal which is deprecated

parent 8450952e
...@@ -689,7 +689,7 @@ void SensorFaceController::savePreset() ...@@ -689,7 +689,7 @@ void SensorFaceController::savePreset()
return; return;
} }
KConfig c(dir.path() % QLatin1Literal("/metadata.desktop")); KConfig c(dir.path() % QStringLiteral("/metadata.desktop"));
KConfigGroup cg(&c, "Desktop Entry"); KConfigGroup cg(&c, "Desktop Entry");
cg.writeEntry("Name", title()); cg.writeEntry("Name", title());
...@@ -708,7 +708,7 @@ void SensorFaceController::savePreset() ...@@ -708,7 +708,7 @@ void SensorFaceController::savePreset()
QDir subDir(dir.path()); QDir subDir(dir.path());
subDir.mkdir(QStringLiteral("contents")); subDir.mkdir(QStringLiteral("contents"));
KConfig faceConfig(subDir.path() % QLatin1Literal("/contents/faceproperties")); KConfig faceConfig(subDir.path() % QStringLiteral("/contents/faceproperties"));
KConfigGroup configGroup(&faceConfig, "Config"); KConfigGroup configGroup(&faceConfig, "Config");
configGroup.writeEntry(QStringLiteral("totalSensors"), QJsonDocument(totalSensors()).toJson(QJsonDocument::Compact)); configGroup.writeEntry(QStringLiteral("totalSensors"), QJsonDocument(totalSensors()).toJson(QJsonDocument::Compact));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment