summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/sdk/abstractintrospection_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-04 11:59:28 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-11-11 13:11:33 +0100
commita842bc95e6660cf8a5b59d0c92a0d56b79fcdf95 (patch)
tree8180fef48912e00a5793d0a20fd5909aec43eed8 /src/designer/src/lib/sdk/abstractintrospection_p.h
parent78d56d0630c78c391cc17b8ab552cf6079b3a15e (diff)
Qt Designer: Clean up the SDK headers
- Use "= default" for constructors/destructors - Disable copy/move for non-QObject type interfaces and add constructors were needed - Remove duplicated disable copy for QObject type interfaces - Fix some formatting - Remove default implementation of QDesignerContainerExtension::canAddWidget()/canRemoveWidget() - Remove Qt 6 fixme comments Task-number: QTBUG-79896 Change-Id: If9521910c6488c081817e2ccdbf42de578cb16ad Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/lib/sdk/abstractintrospection_p.h')
-rw-r--r--src/designer/src/lib/sdk/abstractintrospection_p.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/designer/src/lib/sdk/abstractintrospection_p.h b/src/designer/src/lib/sdk/abstractintrospection_p.h
index 9163fc6b0..89047651c 100644
--- a/src/designer/src/lib/sdk/abstractintrospection_p.h
+++ b/src/designer/src/lib/sdk/abstractintrospection_p.h
@@ -30,8 +30,8 @@
// W A R N I N G
// -------------
//
-// This file is not part of the Qt API. It exists for the convenience
-// of Qt Designer. This header
+// This file is not part of the Qt API. It exists for the convenience
+// of Qt Designer. This header
// file may change from version to version without notice, or even be removed.
//
// We mean it.
@@ -49,6 +49,8 @@ QT_BEGIN_NAMESPACE
class QDESIGNER_SDK_EXPORT QDesignerMetaEnumInterface
{
public:
+ Q_DISABLE_COPY_MOVE(QDesignerMetaEnumInterface)
+
QDesignerMetaEnumInterface();
virtual ~QDesignerMetaEnumInterface();
virtual bool isFlag() const = 0;
@@ -67,6 +69,8 @@ public:
class QDESIGNER_SDK_EXPORT QDesignerMetaPropertyInterface
{
public:
+ Q_DISABLE_COPY_MOVE(QDesignerMetaPropertyInterface)
+
enum Kind { EnumKind, FlagKind, OtherKind };
enum AccessFlag { ReadAccess = 0x0001, WriteAccess = 0x0002, ResetAccess = 0x0004 };
enum Attribute { DesignableAttribute = 0x0001, ScriptableAttribute = 0x0002, StoredAttribute = 0x0004, UserAttribute = 0x0008};
@@ -99,6 +103,8 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QDesignerMetaPropertyInterface::Attributes)
class QDESIGNER_SDK_EXPORT QDesignerMetaMethodInterface
{
public:
+ Q_DISABLE_COPY_MOVE(QDesignerMetaMethodInterface)
+
QDesignerMetaMethodInterface();
virtual ~QDesignerMetaMethodInterface();
@@ -115,8 +121,11 @@ public:
virtual QString typeName() const = 0;
};
-class QDESIGNER_SDK_EXPORT QDesignerMetaObjectInterface {
+class QDESIGNER_SDK_EXPORT QDesignerMetaObjectInterface
+{
public:
+ Q_DISABLE_COPY_MOVE(QDesignerMetaObjectInterface)
+
QDesignerMetaObjectInterface();
virtual ~QDesignerMetaObjectInterface();
@@ -144,8 +153,11 @@ public:
};
// To be obtained from core
-class QDESIGNER_SDK_EXPORT QDesignerIntrospectionInterface {
+class QDESIGNER_SDK_EXPORT QDesignerIntrospectionInterface
+{
public:
+ Q_DISABLE_COPY_MOVE(QDesignerIntrospectionInterface)
+
QDesignerIntrospectionInterface();
virtual ~QDesignerIntrospectionInterface();