diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-30 18:10:53 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-02 06:59:37 +0000 |
commit | 4a93787a78fac4a3cf0942247281e68bd86f47e9 (patch) | |
tree | 0330cee375577c4f91600581d3fb24d9f61d973d /sources/pyside2 | |
parent | 19274bff12f3b2fe3e2395ea67431b56374fc3ef (diff) |
Clean up PySide2/global.h
After 62c21af778b7bff6c86e7f89ef03a87efa6c51cb,
the annotation defines for Qt are no longer required.
Change-Id: Ib3746257992073850a324fb1de77a484aa36d6b6
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside2')
-rw-r--r-- | sources/pyside2/PySide2/global.h.in | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sources/pyside2/PySide2/global.h.in b/sources/pyside2/PySide2/global.h.in index a23b0f332..69f6f6b1e 100644 --- a/sources/pyside2/PySide2/global.h.in +++ b/sources/pyside2/PySide2/global.h.in @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt for Python. @@ -37,16 +37,6 @@ ** ****************************************************************************/ -// Make "signals:", "slots:" visible as access specifiers -#define QT_ANNOTATE_ACCESS_SPECIFIER(a) __attribute__((annotate(#a))) - -// Q_PROPERTY is defined as class annotation which does not work since a -// sequence of properties will to expand to a sequence of annotations -// annotating nothing, causing clang to complain. Instead, define it away in a -// static assert with the stringified argument in a ','-operator (cf qdoc). - -#define QT_ANNOTATE_CLASS(type,...) static_assert(sizeof(#__VA_ARGS__),#type); - #include <QtCore/qnamespace.h> #if @ENABLE_X11@ |