Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtWidgets/qtwidgetsexports.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2022 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QTWIDGETSEXPORTS_H
0005 #define QTWIDGETSEXPORTS_H
0006 
0007 #include <QtCore/qcompilerdetection.h>
0008 #include <QtCore/qtconfigmacros.h> // Q_WIDGETS_EXPORT
0009 #include <QtCore/qtdeprecationmarkers.h> // QT_IF_DEPRECATED_SINCE
0010 
0011 #if defined(QT_SHARED) || !defined(QT_STATIC)
0012 #  if defined(QT_BUILD_WIDGETS_LIB)
0013 #    define Q_WIDGETS_EXPORT Q_DECL_EXPORT
0014 #  else
0015 #    define Q_WIDGETS_EXPORT Q_DECL_IMPORT
0016 #  endif
0017 #else
0018 #  define Q_WIDGETS_EXPORT
0019 #endif
0020 
0021 #if !defined(QT_BUILD_WIDGETS_LIB) && !defined(QT_STATIC)
0022 /* outside library -> inline decl + defi */
0023 /* static builds treat everything as part of the library, so they never inline */
0024 #  define QT_WIDGETS_INLINE_SINCE(major, minor) inline
0025 #  define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) 1
0026 #elif defined(QT_WIDGETS_BUILD_REMOVED_API)
0027 /* inside library, inside removed_api.cpp:
0028  * keep deprecated API -> non-inline decl;
0029  * remove deprecated API -> inline decl;
0030  * definition is always available */
0031 #  define QT_WIDGETS_INLINE_SINCE(major, minor) \
0032     QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */)
0033 #  define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) 1
0034 #else
0035 /* inside library, outside removed_api.cpp:
0036  * keep deprecated API -> non-inline decl, no defi;
0037  * remove deprecated API -> inline decl, defi */
0038 #  define QT_WIDGETS_INLINE_SINCE(major, minor) \
0039     QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */)
0040 #  define QT_WIDGETS_INLINE_IMPL_SINCE(major, minor) \
0041     QT_IF_DEPRECATED_SINCE(major, minor, 1, 0)
0042 #endif
0043 
0044 #ifdef QT_WIDGETS_BUILD_REMOVED_API
0045 #  define QT_WIDGETS_REMOVED_SINCE(major, minor) QT_DEPRECATED_SINCE(major, minor)
0046 #else
0047 #  define QT_WIDGETS_REMOVED_SINCE(major, minor) 0
0048 #endif
0049 
0050 #endif // QTWIDGETSEXPORTS_H