|
@@ -1,27 +0,0 @@
|
|
|
-#include <QApplication>
|
|
|
-#include "ivexit.h"
|
|
|
-#include <thread>
|
|
|
-#include "mainwindow.h"
|
|
|
-
|
|
|
-#include "ivlog.h"
|
|
|
-std::string gstrcarvin;
|
|
|
-std::string gstrobuvin;
|
|
|
-QApplication * gApp;
|
|
|
-iv::Ivlog * gIvlog;
|
|
|
-void ExitFunc()
|
|
|
-{
|
|
|
- gApp->quit();
|
|
|
- std::this_thread::sleep_for(std::chrono::milliseconds(900));
|
|
|
-}
|
|
|
-int main(int argc, char *argv[])
|
|
|
-{
|
|
|
- QApplication a(argc, argv);
|
|
|
- gApp=&a;
|
|
|
- gIvlog = new iv::Ivlog("ui_v2x");
|
|
|
- gIvlog->info("ui_v2x start");
|
|
|
- MainWindow w;
|
|
|
-
|
|
|
- w.show();
|
|
|
- iv::ivexit::RegIVExitCall(ExitFunc);
|
|
|
- return a.exec();
|
|
|
-}
|