From bf00721b9c85a690a7be4f08d0828f6acf2f1287 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Wed, 4 Nov 2015 16:30:14 +0000 Subject: Improved QAPPLICATION_CLASS macro Now it can be defined in the cpp file that include it (usually main.cpp). --- singleapplication.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'singleapplication.h') 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) -- cgit v1.2.1