forked from qt-creator/qt-creator
QmlDesigner: Fix warnings about unused variables
Change-Id: I659cc1246632b91ace8d025e5d02cf5c20f8d1b9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -127,6 +127,8 @@ void ItemLibraryAssetImporter::importQuick3D(const QStringList &inputFiles,
|
||||
#else
|
||||
Q_UNUSED(inputFiles)
|
||||
Q_UNUSED(importPath)
|
||||
Q_UNUSED(options)
|
||||
Q_UNUSED(extToImportOptionsMap)
|
||||
addError(tr("Importing 3D assets requires building against Qt Quick 3D module."));
|
||||
notifyFinished();
|
||||
#endif
|
||||
@@ -173,6 +175,7 @@ bool ItemLibraryAssetImporter::isQuick3DAsset(const QString &fileName) const
|
||||
}
|
||||
return quick3DExt.contains(QFileInfo(fileName).suffix());
|
||||
#else
|
||||
Q_UNUSED(fileName)
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
@@ -182,6 +185,7 @@ QVariantMap ItemLibraryAssetImporter::supportedOptions(const QString &modelFile)
|
||||
#ifdef IMPORT_QUICK3D_ASSETS
|
||||
return m_quick3DAssetImporter->getOptionsForFile(modelFile);
|
||||
#else
|
||||
Q_UNUSED(modelFile)
|
||||
return {};
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user