/*
- * Copyright (C) 2016 Mentor Graphics Development (Deutschland) GmbH
+ * Copyright (C) 2016, 2017 Mentor Graphics Development (Deutschland) GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "layouthandler.h"
#include "homescreencontrolinterface.h"
-#include "../src2/applicationlauncher.h"
-#include "../src2/statusbarmodel.h"
-#include "../src2/applicationmodel.h"
+#include "applicationlauncher.h"
+#include "statusbarmodel.h"
+#include "applicationmodel.h"
+
+void noOutput(QtMsgType, const QMessageLogContext &, const QString &)
+{
+}
int main(int argc, char *argv[])
{
parser.setApplicationDescription("AGL HomeScreen - see wwww... for more details");
parser.addHelpOption();
parser.addVersionOption();
+ QCommandLineOption quietOption(QStringList() << "q" << "quiet",
+ QCoreApplication::translate("main", "Be quiet. No outputs."));
+ parser.addOption(quietOption);
parser.process(a);
+ if (parser.isSet(quietOption))
+ {
+ qInstallMessageHandler(noOutput);
+ }
+
qDBusRegisterMetaType<AppInfo>();
qDBusRegisterMetaType<QList<AppInfo> >();