QEverCloud  3.0.0
Unofficial Evernote Cloud API for Qt
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
qt4helpers.h
Go to the documentation of this file.
1 
12 #ifndef QEVERCLOUD_QT4_HELPERS_H
13 #define QEVERCLOUD_QT4_HELPERS_H
14 
15 #include <QtGlobal>
16 
17 #if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
18 
19 #if __cplusplus >= 201103L
20 #define Q_DECL_OVERRIDE override
21 #define Q_DECL_FINAL final
22 #define Q_STATIC_ASSERT_X(x1,x2) static_assert(x1, x2)
23 #define Q_DECL_EQ_DELETE = delete
24 #define Q_NULLPTR nullptr
25 #else
26 #define Q_DECL_OVERRIDE
27 #define Q_DECL_FINAL
28 #define Q_STATIC_ASSERT_X(x1,x2)
29 #define Q_DECL_EQ_DELETE
30 #define Q_NULLPTR NULL
31 #endif
32 
33 #define QStringLiteral(x) QString(QLatin1String(x))
34 
35 #define QEC_SIGNAL(className, methodName, ...) SIGNAL(methodName(__VA_ARGS__))
36 #define QEC_SLOT(className, methodName, ...) SLOT(methodName(__VA_ARGS__))
37 
38 #else // QT_VERSION
39 
40 #define QEC_SIGNAL(className, methodName, ...) &className::methodName
41 #define QEC_SLOT(className, methodName, ...) &className::methodName
42 
43 #endif // QT_VERSION
44 
45 #endif // QEVERCLOUD_QT4_HELPERS_H