aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 213a591..3339840 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -55,12 +55,12 @@ int main(int argc, char *argv[]) {
tmpDir.mkpath(".");
}
QLockFile lockFile(tmpFilePath);
- qDebug() << "Checking for a lockfile at: " + tmpFilePath;
+ qDebug().noquote() << QString("Checking for a lockfile at: '%0'").arg(tmpFilePath);
if(!lockFile.tryLock(100)){
- qDebug() << QObject::tr("You already have this app running.");
- qDebug() << QObject::tr("Only one instance is allowed.");
- qDebug() << QObject::tr("Closing application now with an error.");
+ qDebug().noquote() << "You already have this app running.\n"
+ << "Only one instance is allowed.\n"
+ << "Closing application now with an error.";
return 1;
}
@@ -71,12 +71,12 @@ int main(int argc, char *argv[]) {
QQuickStyle::setStyle("Material");
QTranslator translator;
- qDebug() << "Loading locale: qrc:/locales/bin/" + QLocale::system().name();
+ qDebug().noquote() << QString("Locales: Loading locale: qrc:/locales/bin/%0").arg(QLocale::system().name());
if(translator.load(":/locales/bin/" + QLocale::system().name())) {
app.installTranslator(&translator);
- qDebug() << "Loaded: " + QLocale::system().name() + " locale!";
+ qDebug().noquote() << "Locales: Loaded: " + QLocale::system().name() + " locale!";
} else {
- qDebug() << "Unable to load translation";
+ qWarning() << "Locales: Unable to load translation!";
}
QQmlApplicationEngine engine(&app);