forked from qt-creator/qt-creator
QmlDesigner: Fix unused warnings
Change-Id: Iacf067b772b7beda0e9cb27aa173115d4bcced38 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -35,11 +35,11 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace QmlDesigner {
|
||||
namespace Internal {
|
||||
class InternalNode;
|
||||
class InternalProperty;
|
||||
class InternalNode;
|
||||
class InternalProperty;
|
||||
|
||||
using InternalNodePointer = QSharedPointer<InternalNode>;
|
||||
using InternalPropertyPointer = QSharedPointer<InternalProperty>;
|
||||
using InternalNodePointer = QSharedPointer<InternalNode>;
|
||||
using InternalPropertyPointer = QSharedPointer<InternalProperty>;
|
||||
}
|
||||
|
||||
class Model;
|
||||
|
@@ -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<CppComponentValue>(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<PropertyInfo> getQmlTypes(const CppComponentValue *objectValue, const ContextPtr &context, bool local = false, int rec = 0);
|
||||
|
||||
QVector<PropertyInfo> getTypes(const ObjectValue *objectValue, const ContextPtr &context, bool local = false, int rec = 0)
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user