diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-02 11:08:19 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-01-06 13:39:12 +0100 |
commit | 90f6b663a8cbbec92dd496508b77a7df7b6be8b8 (patch) | |
tree | 9b379b893c6a1bb2166ce3deb063e891e75e6834 /src/designer/src/components/formeditor/qdesigner_resource.cpp | |
parent | eb4e7edbfa0700205faabf33a8cfaa7b75c04dcf (diff) |
Qt Designer: No longer handle functions given for the DESIGNABLE property attribute
Remove the parameter from the introspection interface and its handling.
Change-Id: I1957563808811371f51c00312906f7f52da458f6
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/formeditor/qdesigner_resource.cpp')
-rw-r--r-- | src/designer/src/components/formeditor/qdesigner_resource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/designer/src/components/formeditor/qdesigner_resource.cpp b/src/designer/src/components/formeditor/qdesigner_resource.cpp index 0725f9d1e..2a1cdce3f 100644 --- a/src/designer/src/components/formeditor/qdesigner_resource.cpp +++ b/src/designer/src/components/formeditor/qdesigner_resource.cpp @@ -1534,7 +1534,7 @@ bool QDesignerResource::checkProperty(QObject *obj, const QString &prop) const const QDesignerMetaObjectInterface *meta = core()->introspection()->metaObject(obj); const int pindex = meta->indexOfProperty(prop); - if (pindex != -1 && !(meta->property(pindex)->attributes(obj) & QDesignerMetaPropertyInterface::StoredAttribute)) + if (pindex != -1 && !meta->property(pindex)->attributes().testFlag(QDesignerMetaPropertyInterface::StoredAttribute)) return false; if (prop == QStringLiteral("objectName") || prop == QStringLiteral("spacerName")) // ### don't store the property objectName |