2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef TASK175491
|
|
|
|
#define TASK175491
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2013-03-14 23:42:15 +00:00
|
|
|
class GadgetWithNoEnums
|
|
|
|
{
|
2011-04-27 10:05:43 +00:00
|
|
|
Q_GADGET
|
2013-03-14 23:42:15 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
GadgetWithNoEnums() {}
|
|
|
|
virtual ~GadgetWithNoEnums() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class DerivedGadgetWithEnums : public GadgetWithNoEnums
|
|
|
|
{
|
|
|
|
Q_GADGET
|
|
|
|
|
|
|
|
public:
|
|
|
|
enum FooEnum { FooValue };
|
2011-12-10 09:53:39 +00:00
|
|
|
Q_ENUM( FooEnum )
|
2013-03-14 23:42:15 +00:00
|
|
|
DerivedGadgetWithEnums() {}
|
|
|
|
~DerivedGadgetWithEnums() {}
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|