aboutsummaryrefslogtreecommitdiff
path: root/singleapplication.h
diff options
context:
space:
mode:
Diffstat (limited to 'singleapplication.h')
-rw-r--r--singleapplication.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/singleapplication.h b/singleapplication.h
index 3766d61..1fe5c12 100644
--- a/singleapplication.h
+++ b/singleapplication.h
@@ -2,7 +2,9 @@
#define SINGLE_APPLICATION_H
// Change this to inherit from QGuiApplication or QCoreApplication
-#define QAPPLICATION_CLASS QApplication
+#ifndef QAPPLICATION_CLASS
+ #define QAPPLICATION_CLASS QCoreApplication
+#endif
#define QUOTE(C) #C
#define INCLUDE_FILE(C) QUOTE(C)