diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-04 11:59:28 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-11 13:11:33 +0100 |
commit | a842bc95e6660cf8a5b59d0c92a0d56b79fcdf95 (patch) | |
tree | 8180fef48912e00a5793d0a20fd5909aec43eed8 /src/designer/src/lib/sdk/propertysheet.h | |
parent | 78d56d0630c78c391cc17b8ab552cf6079b3a15e (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/propertysheet.h')
-rw-r--r-- | src/designer/src/lib/sdk/propertysheet.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/designer/src/lib/sdk/propertysheet.h b/src/designer/src/lib/sdk/propertysheet.h index a59c896a9..1f3a78d05 100644 --- a/src/designer/src/lib/sdk/propertysheet.h +++ b/src/designer/src/lib/sdk/propertysheet.h @@ -38,7 +38,10 @@ class QVariant; class QDesignerPropertySheetExtension { public: - virtual ~QDesignerPropertySheetExtension() {} + Q_DISABLE_COPY_MOVE(QDesignerPropertySheetExtension) + + QDesignerPropertySheetExtension() = default; + virtual ~QDesignerPropertySheetExtension() = default; virtual int count() const = 0; @@ -63,9 +66,7 @@ public: virtual bool isChanged(int index) const = 0; virtual void setChanged(int index, bool changed) = 0; - virtual bool isEnabled(int index) const - // ### Qt6 remove body, provided in Qt5 for source compatibility to Qt4. - { Q_UNUSED(index); return true; } + virtual bool isEnabled(int index) const = 0; }; Q_DECLARE_EXTENSION_INTERFACE(QDesignerPropertySheetExtension, |