2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2024-02-02 13:36:10 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
2016-11-16 11:34:00 +00:00
|
|
|
#include <QStringList>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include "controllerwindow.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2016-11-16 11:34:00 +00:00
|
|
|
QStringList arguments = QCoreApplication::arguments();
|
|
|
|
arguments.pop_front();
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
ControllerWindow controller;
|
2016-11-16 11:34:00 +00:00
|
|
|
if (!arguments.contains(QLatin1String("-l")))
|
|
|
|
LogWidget::install();
|
|
|
|
if (!arguments.contains(QLatin1String("-e")))
|
|
|
|
controller.registerEventFilter();
|
2011-04-27 10:05:43 +00:00
|
|
|
controller.show();
|
2017-06-22 13:43:31 +00:00
|
|
|
controller.lower();
|
2011-04-27 10:05:43 +00:00
|
|
|
return app.exec();
|
|
|
|
}
|