Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
None
-
Qt Creator 12.0.0
-
None
-
278d69df4 (qds/dev), 5e61d46e4 (qds/dev)
Description
In src/plugins/qmldesigner/CMakeLists.txt
extend_qtc_library(QmlDesignerUtils CONDITION NOT DISABLE_COMPILE_WARNING_AS_ERROR PROPERTIES COMPILE_WARNING_AS_ERROR ON )
There's no disabling of the warnings for the use of deprecated entities or downgrading the errors back to warnings. This causes the build to fail:
src/plugins/qmldesigner/designercore/imagecache/imagecacheconnectionmanager.cpp:48:63: error: ‘static int QMetaType::type(const char*)’ is deprecated [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertycontainer.cpp:44:21: error: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertyparser.cpp:203:31: error: ‘static int QMetaType::type(const char*)’ is deprecated [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertyparser.cpp:268:43: error: ‘static int QMetaType::type(const char*)’ is deprecated [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertyparser.cpp:272:49: error: ‘Type’ is deprecated: Use QMetaType::Type instead. [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertyparser.cpp:272:26: error: ‘bool QVariant::convert(int)’ is deprecated [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/propertyparser.cpp:280:50: error: ‘static const char* QMetaType::typeName(int)’ is deprecated [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp:299:34: error: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp:315:41: error: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp:334:41: error: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/instances/nodeinstance.cpp:420:26: error: ‘QVariant::Type QVariant::type() const’ is deprecated: Use typeId() or metaType(). [-Werror=deprecated-declarations] src/plugins/qmldesigner/designercore/model/modelmerger.cpp:86:30: error: ‘qsizetype QString::count() const’ is deprecated: Use size() or length() instead. [-Werror=deprecated-declarations]
Attachments
Issue Links
- relates to
-
QDS-10014 Improve version management
- Open
- resulted from
-
QTCREATORBUG-29238 qmldesigner turns -Werror on by default
- Closed