use qcoreapplication -> no window or widgets
This commit is contained in:
parent
ae582b75d5
commit
9a6ac85f99
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QApplication>
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
@ -16,7 +15,6 @@
|
|||||||
#include "commandline_parser.h"
|
#include "commandline_parser.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "update.h"
|
#include "update.h"
|
||||||
#include "mainwindow.h"
|
|
||||||
#include "System.h"
|
#include "System.h"
|
||||||
|
|
||||||
#include <DeviceController/interfaces.h>
|
#include <DeviceController/interfaces.h>
|
||||||
@ -54,9 +52,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
openlog("DC", LOG_PERROR | LOG_CONS, LOG_USER);
|
openlog("DC", LOG_PERROR | LOG_CONS, LOG_USER);
|
||||||
|
|
||||||
QApplication a(argc, argv);
|
QCoreApplication a(argc, argv);
|
||||||
QApplication::setApplicationName("ATBDownloadDCFirmware");
|
QCoreApplication::setApplicationName("ATBDownloadDCFirmware");
|
||||||
QApplication::setApplicationVersion(APP_VERSION);
|
QCoreApplication::setApplicationVersion(APP_VERSION);
|
||||||
|
|
||||||
if (!messageHandlerInstalled()) { // change internal qt-QDebug-handling
|
if (!messageHandlerInstalled()) { // change internal qt-QDebug-handling
|
||||||
atbInstallMessageHandler(atbDebugOutput);
|
atbInstallMessageHandler(atbDebugOutput);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user