Commit 5086d966 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringLiteral

parent 1bceb10f
...@@ -1612,7 +1612,7 @@ FileType fileType(const KMimeType::Ptr& mimetype) ...@@ -1612,7 +1612,7 @@ FileType fileType(const KMimeType::Ptr& mimetype)
return TextApplication; return TextApplication;
if (mimetype->is(QLatin1String("text/plain"))) if (mimetype->is(QLatin1String("text/plain")))
return TextPlain; return TextPlain;
if (mimetype->name().startsWith(QLatin1String("image/"))) if (mimetype->name().startsWith(QStringLiteral("image/")))
return Image; return Image;
return Unknown; return Unknown;
} }
......
...@@ -1357,7 +1357,7 @@ void MainWindow::executeDropEvent(MainWindow* win, QDropEvent* e) ...@@ -1357,7 +1357,7 @@ void MainWindow::executeDropEvent(MainWindow* win, QDropEvent* e)
qCDebug(KALARM_LOG) << "URL"; qCDebug(KALARM_LOG) << "URL";
// Try to find the mime type of the file, without downloading a remote file // Try to find the mime type of the file, without downloading a remote file
KMimeType::Ptr mimeType = KMimeType::findByUrl(files[0]); KMimeType::Ptr mimeType = KMimeType::findByUrl(files[0]);
action = mimeType->name().startsWith(QLatin1String("audio/")) ? KAEvent::AUDIO : KAEvent::FILE; action = mimeType->name().startsWith(QStringLiteral("audio/")) ? KAEvent::AUDIO : KAEvent::FILE;
alarmText.setText(files[0].prettyUrl()); alarmText.setText(files[0].prettyUrl());
} }
else if (data->hasText()) else if (data->hasText())
......
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