aboutsummaryrefslogtreecommitdiff
path: root/lib/about
diff options
context:
space:
mode:
Diffstat (limited to 'lib/about')
-rw-r--r--lib/about/aboutplugin.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/about/aboutplugin.cpp b/lib/about/aboutplugin.cpp
index b345b75..99c04ec 100644
--- a/lib/about/aboutplugin.cpp
+++ b/lib/about/aboutplugin.cpp
@@ -13,11 +13,11 @@
QTreeWidgetItem *createItem(const QString &key, const QJsonValue &json, QTreeWidgetItem *parent)
{
- auto *item = new QTreeWidgetItem(parent, { key, QLatin1Literal("---") });
+ auto *item = new QTreeWidgetItem(parent, { key, QLatin1String("---") });
switch(json.type()) {
case QJsonValue::Bool:
- item->setText(1, json.toBool() ? QLatin1Literal("true") : QLatin1Literal("false"));
+ item->setText(1, json.toBool() ? QLatin1String("true") : QLatin1String("false"));
break;
case QJsonValue::Double:
@@ -43,11 +43,11 @@ QTreeWidgetItem *createItem(const QString &key, const QJsonValue &json, QTreeWid
break;
case QJsonValue::Null:
- item->setText(1, QLatin1Literal("null"));
+ item->setText(1, QLatin1String("null"));
break;
case QJsonValue::Undefined:
- item->setText(1, QLatin1Literal("undefined"));
+ item->setText(1, QLatin1String("undefined"));
break;
}
@@ -92,10 +92,10 @@ AboutPluginDialog::AboutPluginDialog(QPluginLoader *loader, QWidget *parent)
}
});
- ui->name->setText(metaData[QLatin1Literal("name")].toString());
- ui->author->setText(metaData[QLatin1Literal("author")].toString());
- ui->license->setText(metaData[QLatin1Literal("license")].toString());
- ui->shortcut->setText(metaData[QLatin1Literal("shortcut")].toString());
+ ui->name->setText(metaData[QLatin1String("name")].toString());
+ ui->author->setText(metaData[QLatin1String("author")].toString());
+ ui->license->setText(metaData[QLatin1String("license")].toString());
+ ui->shortcut->setText(metaData[QLatin1String("shortcut")].toString());
for(const QString &key : loader->metaData().keys()) {
auto *i = createItem(key, loader->metaData()[key], nullptr);