forked from qt-creator/qt-creator
QmlDesigner: disable debug outputs
+ prettify code Change-Id: I1749ba5a92b5a1afb1c98bf621aec98cbc838405 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
3685499785
commit
1b90a938a3
@@ -124,8 +124,6 @@ public:
|
|||||||
{
|
{
|
||||||
return QmlJS::LibraryInfo();
|
return QmlJS::LibraryInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void initializeMetaTypeSystem(const QString &resourcePath)
|
static void initializeMetaTypeSystem(const QString &resourcePath)
|
||||||
@@ -172,6 +170,7 @@ tst_TestCore::tst_TestCore()
|
|||||||
: QObject()
|
: QObject()
|
||||||
{
|
{
|
||||||
QLoggingCategory::setFilterRules(QStringLiteral("qtc.qmljs.imports=false"));
|
QLoggingCategory::setFilterRules(QStringLiteral("qtc.qmljs.imports=false"));
|
||||||
|
QLoggingCategory::setFilterRules(QStringLiteral("*.info=false\n*.debug=false\n*.warning=false"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_TestCore::initTestCase()
|
void tst_TestCore::initTestCase()
|
||||||
@@ -190,10 +189,8 @@ void tst_TestCore::initTestCase()
|
|||||||
QmlJS::PathsAndLanguages lPaths;
|
QmlJS::PathsAndLanguages lPaths;
|
||||||
|
|
||||||
lPaths.maybeInsert(Utils::FileName::fromString(basePaths.first()), QmlJS::Dialect::Qml);
|
lPaths.maybeInsert(Utils::FileName::fromString(basePaths.first()), QmlJS::Dialect::Qml);
|
||||||
QmlJS::ModelManagerInterface::importScan(result, QmlJS::ModelManagerInterface::workingCopy(), lPaths,
|
QmlJS::ModelManagerInterface::importScan(result, QmlJS::ModelManagerInterface::workingCopy(),
|
||||||
QmlJS::ModelManagerInterface::instance(), false);
|
lPaths, QmlJS::ModelManagerInterface::instance(), false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Load plugins
|
// Load plugins
|
||||||
|
|
||||||
@@ -209,7 +206,7 @@ void tst_TestCore::initTestCase()
|
|||||||
|
|
||||||
QFileInfo builtins(resourcePath() + "/qml-type-descriptions/builtins.qmltypes");
|
QFileInfo builtins(resourcePath() + "/qml-type-descriptions/builtins.qmltypes");
|
||||||
QStringList errors, warnings;
|
QStringList errors, warnings;
|
||||||
QmlJS::CppQmlTypesLoader::defaultQtObjects = QmlJS::CppQmlTypesLoader::loadQmlTypes(QFileInfoList() << builtins, &errors, &warnings);
|
QmlJS::CppQmlTypesLoader::defaultQtObjects = QmlJS::CppQmlTypesLoader::loadQmlTypes(QFileInfoList{builtins}, &errors, &warnings);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_TestCore::cleanupTestCase()
|
void tst_TestCore::cleanupTestCase()
|
||||||
|
Reference in New Issue
Block a user