blob: b5c73c9bddd30c6910c8b837bb82015bfc1a2380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|