diff options
Diffstat (limited to 'sources/pyside6/tests/pysidetest/flagstest.h')
-rw-r--r-- | sources/pyside6/tests/pysidetest/flagstest.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sources/pyside6/tests/pysidetest/flagstest.h b/sources/pyside6/tests/pysidetest/flagstest.h new file mode 100644 index 000000000..b5c73c9bd --- /dev/null +++ b/sources/pyside6/tests/pysidetest/flagstest.h @@ -0,0 +1,32 @@ +// Copyright (C) 2020 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#pragma once + +#include "pysidetest_macros.h" + +#include <QtCore/QObject> + +namespace FlagsNamespace +{ + +enum Option { + NoOptions = 0x0, + ShowTabs = 0x1, + ShowAll = 0x2, + SqueezeBlank = 0x4 +}; +Q_DECLARE_FLAGS(Options, Option) +Q_DECLARE_OPERATORS_FOR_FLAGS(Options) + +class PYSIDETEST_API ClassForEnum : public QObject +{ + Q_OBJECT +public: + Q_DISABLE_COPY_MOVE(ClassForEnum) + + ClassForEnum(FlagsNamespace::Options opt = FlagsNamespace::Option::NoOptions); + virtual ~ClassForEnum() override; +}; + +} // namespace FlagsNamespace |