mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-12-02 00:32:24 +08:00
24 lines
650 B
C++
24 lines
650 B
C++
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||
|
|
||
|
#include <QApplication>
|
||
|
#include <QStringList>
|
||
|
|
||
|
#include "controllerwindow.h"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication app(argc, argv);
|
||
|
QStringList arguments = QCoreApplication::arguments();
|
||
|
arguments.pop_front();
|
||
|
|
||
|
ControllerWindow controller;
|
||
|
if (!arguments.contains(QLatin1String("-l")))
|
||
|
LogWidget::install();
|
||
|
if (!arguments.contains(QLatin1String("-e")))
|
||
|
controller.registerEventFilter();
|
||
|
controller.show();
|
||
|
controller.lower();
|
||
|
return app.exec();
|
||
|
}
|