QSkinny
0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGlobal.h
1
/******************************************************************************
2
* QSkinny - Copyright (C) The authors
3
* SPDX-License-Identifier: BSD-3-Clause
4
*****************************************************************************/
5
6
#ifndef QSK_GLOBAL_H
7
#define QSK_GLOBAL_H
8
9
#include <qcompilerdetection.h>
10
#include <qglobal.h>
11
12
#if QT_VERSION < QT_VERSION_CHECK( 5, 15, 0 )
13
static_assert
(
false
,
"QSkinny requires Qt >= 5.15"
);
14
#endif
15
16
// QSK_VERSION is (major << 16) + (minor << 8) + patch.
17
18
#define QSK_VERSION 0x000001
19
#define QSK_VERSION_STR "0.0.1"
20
21
#ifdef QSK_DLL
22
23
#if defined( QSK_MAKEDLL )
// create a DLL library
24
#define QSK_EXPORT Q_DECL_EXPORT
25
#else
// use a DLL library
26
#define QSK_EXPORT Q_DECL_IMPORT
27
#endif
28
29
#endif
// QSK_DLL
30
31
#ifndef QSK_EXPORT
32
#define QSK_EXPORT
33
#endif
34
35
#define QSK_QT_PRIVATE_BEGIN \
36
QT_WARNING_PUSH \
37
QT_WARNING_DISABLE_GCC("-Wpragmas") \
38
QT_WARNING_DISABLE_GCC("-Wpedantic") \
39
QT_WARNING_DISABLE_GCC("-Wsuggest-override") \
40
QT_WARNING_DISABLE_GCC("-Wsuggest-final-types") \
41
QT_WARNING_DISABLE_GCC("-Wsuggest-final-methods")
42
43
#define QSK_QT_PRIVATE_END \
44
QT_WARNING_POP
45
46
#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
47
using
QskHashValue = uint;
48
#else
49
using
QskHashValue = size_t;
50
#endif
51
52
#endif
src
common
QskGlobal.h
Generated by
1.9.8