diff --git a/src/plugins/qmldesigner/designercore/include/abstractproperty.h b/src/plugins/qmldesigner/designercore/include/abstractproperty.h index c5d83ecf34d..a79c6863388 100644 --- a/src/plugins/qmldesigner/designercore/include/abstractproperty.h +++ b/src/plugins/qmldesigner/designercore/include/abstractproperty.h @@ -35,11 +35,11 @@ QT_END_NAMESPACE namespace QmlDesigner { namespace Internal { - class InternalNode; - class InternalProperty; + class InternalNode; + class InternalProperty; - using InternalNodePointer = QSharedPointer; - using InternalPropertyPointer = QSharedPointer; + using InternalNodePointer = QSharedPointer; + using InternalPropertyPointer = QSharedPointer; } class Model; diff --git a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp index ea84e8528f4..5fea82b73f9 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp @@ -394,33 +394,6 @@ const CppComponentValue *findQmlPrototype(const ObjectValue *ov, const ContextPt return findQmlPrototype(ov->prototype(context), context); } -QStringList prototypes(const ObjectValue *ov, const ContextPtr &context, bool versions = false) -{ - QStringList list; - if (!ov) - return list; - ov = ov->prototype(context); - while (ov) { - const CppComponentValue * qmlValue = value_cast(ov); - if (qmlValue) { - if (versions) { - list << qmlValue->moduleName() + '.' + qmlValue->className() + - ' ' + QString::number(qmlValue->componentVersion().majorVersion()) + - '.' + QString::number(qmlValue->componentVersion().minorVersion()); - } else { - list << qmlValue->moduleName() + QLatin1Char('.') + qmlValue->className(); - } - } else { - if (versions) - list << ov->className() + QLatin1String(" -1.-1"); - else - list << ov->className(); - } - ov = ov->prototype(context); - } - return list; -} - QVector getQmlTypes(const CppComponentValue *objectValue, const ContextPtr &context, bool local = false, int rec = 0); QVector getTypes(const ObjectValue *objectValue, const ContextPtr &context, bool local = false, int rec = 0) diff --git a/src/plugins/qmldesigner/qmldesignerprojectmanager.cpp b/src/plugins/qmldesigner/qmldesignerprojectmanager.cpp index 8fdf4b94df0..b685d6feb14 100644 --- a/src/plugins/qmldesigner/qmldesignerprojectmanager.cpp +++ b/src/plugins/qmldesigner/qmldesignerprojectmanager.cpp @@ -246,7 +246,7 @@ QtSupport::QtVersion *getQtVersion(::ProjectExplorer::Target *target) return {}; } -QtSupport::QtVersion *getQtVersion(::ProjectExplorer::Project *project) +[[maybe_unused]] QtSupport::QtVersion *getQtVersion(::ProjectExplorer::Project *project) { return getQtVersion(project->activeTarget()); } @@ -289,7 +289,8 @@ bool skipPath(const std::filesystem::path &path) } #endif -void qtQmldirPaths(::ProjectExplorer::Target *target, QStringList &qmldirPaths) +void qtQmldirPaths([[maybe_unused]] ::ProjectExplorer::Target *target, + [[maybe_unused]] QStringList &qmldirPaths) { #ifdef QDS_HAS_QMLDOM const QString installDirectory = qmlPath(target).toString();