Removed cmdline args passing to Qt

This commit is contained in:
Andrei Smirnov 2021-07-20 07:10:40 +03:00 committed by Michał
parent fd1ed3eba8
commit d62b8ee921
2 changed files with 8 additions and 5 deletions

View File

@ -66,7 +66,7 @@ DOS_API void DOS_CALL dos_qapplication_initialize_opengl(void);
/// \brief Create a QGuiApplication /// \brief Create a QGuiApplication
/// \note The created QGuiApplication should be freed by calling dos_qguiapplication_delete() /// \note The created QGuiApplication should be freed by calling dos_qguiapplication_delete()
DOS_API void DOS_CALL dos_qguiapplication_create(int argc, char** argv); DOS_API void DOS_CALL dos_qguiapplication_create();
/// \brief Calls the QGuiApplication::exec() function of the current QGuiApplication /// \brief Calls the QGuiApplication::exec() function of the current QGuiApplication
/// \note A QGuiApplication should have been already created through dos_qguiapplication_create() /// \note A QGuiApplication should have been already created through dos_qguiapplication_create()
@ -96,7 +96,7 @@ DOS_API void dos_qapplication_installEventFilter(DosQQmlApplicationEngine *vptr)
/// \brief Create a QApplication /// \brief Create a QApplication
/// \note The created QApplication should be freed by calling dos_qapplication_delete() /// \note The created QApplication should be freed by calling dos_qapplication_delete()
DOS_API void DOS_CALL dos_qapplication_create(char *filename); DOS_API void DOS_CALL dos_qapplication_create();
/// \brief Calls the QApplication::exec() function of the current QGuiApplication /// \brief Calls the QApplication::exec() function of the current QGuiApplication
/// \note A QApplication should have been already created through dos_qapplication_create() /// \note A QApplication should have been already created through dos_qapplication_create()

View File

@ -127,8 +127,11 @@ void dos_qapplication_initialize_opengl()
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
} }
void dos_qguiapplication_create(int argc, char** argv) void dos_qguiapplication_create()
{ {
static int argc = 1;
static char *argv[] = {"Status"};
register_meta_types(); register_meta_types();
new QGuiApplication(argc, argv); new QGuiApplication(argc, argv);
@ -165,10 +168,10 @@ void dos_qguiapplication_installEventFilter(::DosQQmlApplicationEngine *vptr)
qGuiApp->installEventFilter(dockClicker); qGuiApp->installEventFilter(dockClicker);
} }
void dos_qapplication_create(char *appName) void dos_qapplication_create()
{ {
static int argc = 1; static int argc = 1;
static char *argv[] = {appName}; static char *argv[] = {"Status"};
register_meta_types(); register_meta_types();