Commit fe44bf29 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

QLatin1String() -> QStringLiteral

parent 7bf18483
......@@ -30,9 +30,9 @@
using namespace KOrg;
AboutData::AboutData()
: KAboutData(QLatin1String("korganizer"),
: KAboutData(QStringLiteral("korganizer"),
i18n("KOrganizer"),
QLatin1String(KDEPIM_VERSION),
QStringLiteral(KDEPIM_VERSION),
i18n("A Personal Organizer"),
KAboutLicense::GPL,
i18n("Copyright © 1997–1999 Preston Brown\n"
......@@ -41,7 +41,7 @@ AboutData::AboutData()
"Copyright © 2006–2012 Allen Winter\n"
"Copyright © 2012–2015 KOrganizer authors"),
QString(),
QLatin1String("https://userbase.kde.org/KOrganizer"))
QStringLiteral("https://userbase.kde.org/KOrganizer"))
{
#if defined( KDEPIM_GIT_REVISION_STRING ) && defined( KDEPIM_GIT_LAST_CHANGE )
const QByteArray rev(KDEPIM_GIT_REVISION_STRING);
......@@ -54,15 +54,15 @@ AboutData::AboutData()
#endif
addAuthor(i18n("Allen Winter"), i18n("Maintainer"),
QLatin1String("winter@kde.org"));
QStringLiteral("winter@kde.org"));
addAuthor(i18n("Reinhold Kainhofer"), i18n("Former Maintainer"),
QLatin1String("reinhold@kainhofer.com"));
QStringLiteral("reinhold@kainhofer.com"));
addAuthor(i18n("Cornelius Schumacher"), i18n("Former Maintainer"),
QLatin1String("schumacher@kde.org"));
QStringLiteral("schumacher@kde.org"));
addAuthor(i18n("Preston Brown"), i18n("Original Author"),
QLatin1String("pbrown@kde.org"));
QStringLiteral("pbrown@kde.org"));
addAuthor(i18n("Laurent Montel"), i18n("Developer"),
QLatin1String("montel@kde.org"));
QStringLiteral("montel@kde.org"));
addCredit(i18n("Richard Apodaca"));
addCredit(i18n("Björn Balazs"));
addCredit(i18n("Jan-Pascal van Best"));
......
......@@ -1384,11 +1384,11 @@ bool ActionManager::handleCommandLine(const QStringList &args)
mainWindow->topLevelWidget()->show();
// Check for import, merge or ask
if (parser.isSet(QLatin1String("import"))) {
if (parser.isSet(QStringLiteral("import"))) {
for (const QString &url : parser.positionalArguments()) {
importURL(QUrl::fromUserInput(url), /*merge=*/false);
}
} else if (parser.isSet(QLatin1String("merge"))) {
} else if (parser.isSet(QStringLiteral("merge"))) {
for (const QString &url : parser.positionalArguments()) {
importURL(QUrl::fromUserInput(url), /*merge=*/true);
}
......
......@@ -90,11 +90,11 @@ int KOrganizerApp::activate(const QStringList &args)
return -1;
}
// Check for import, merge or ask
if (parser.isSet(QLatin1String("import"))) {
if (parser.isSet(QStringLiteral("import"))) {
for (const QString &url : parser.positionalArguments()) {
korg->actionManager()->importURL(QUrl::fromUserInput(url), false);
}
} else if (parser.isSet(QLatin1String("merge"))) {
} else if (parser.isSet(QStringLiteral("merge"))) {
for (const QString &url : parser.positionalArguments()) {
korg->actionManager()->importURL(QUrl::fromUserInput(url), true);
}
......
......@@ -32,17 +32,17 @@
static void korganizer_options(QCommandLineParser *parser)
{
parser->addOption(QCommandLineOption(
QStringList() << QLatin1String("i") << QLatin1String("import"),
QStringList() << QStringLiteral("i") << QStringLiteral("import"),
i18n("Import the specified files as separate calendars")));
parser->addOption(QCommandLineOption(
QStringList() << QLatin1String("m") << QLatin1String("merge"),
QStringList() << QStringLiteral("m") << QStringLiteral("merge"),
i18n("Merge the specified files into an existing calendar")));
parser->addPositionalArgument(
QLatin1String("calendars"),
QStringLiteral("calendars"),
i18n("Calendar files or urls. Unless -i or -m is explicitly specified, "
"the user will be asked whether to import or merge"),
QLatin1String("[calendar...]"));
QStringLiteral("[calendar...]"));
}
#endif
......
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