[vlmc-devel] [PATCH 01/12] Main: Mark WITH_GUI on Widget-related code, and use QCoreApplication if non-GUI

Yikai Lu luyikei.qmltu at gmail.com
Sun May 22 08:36:45 CEST 2016


---
 src/Main/main.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/Main/main.cpp b/src/Main/main.cpp
index 84b50c0..dd092ce 100644
--- a/src/Main/main.cpp
+++ b/src/Main/main.cpp
@@ -41,10 +41,14 @@
 #include "Gui/wizard/firstlaunch/FirstLaunchWizard.h"
 #endif
 
+#ifdef WITH_GUI
 #include <QApplication>
 #include <QColor>
-#include <QFile>
 #include <QPalette>
+#else
+#include <QCoreApplication>
+#endif
+#include <QFile>
 #include <QSettings>
 #include <QUuid>
 #include <QTextCodec>
-- 
1.9.1



More information about the Vlmc-devel mailing list