Commit e17d09a8 authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlDesigner: fix that we get output only in error case

Also compress output in three lines

Change-Id: I5a6917f4243f05ff58692ffdb3b17412b49fdeb9
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent c7b7e4d7
......@@ -32,6 +32,8 @@
#include <model.h>
#include <nodemetainfo.h>
#include <utils/algorithm.h>
#include <QVariant>
#include <QMetaProperty>
#include <QMimeData>
......@@ -152,13 +154,12 @@ void ItemLibraryModel::update(ItemLibraryInfo *itemLibraryInfo, Model *model)
NodeMetaInfo metaInfo = model->metaInfo(entry.typeName());
bool valid = metaInfo.isValid() && metaInfo.majorVersion() == entry.majorVersion();
bool isItem = metaInfo.isSubclassOf("QtQuick.Item");
bool isItem = valid && metaInfo.isSubclassOf("QtQuick.Item");
if (valid && isItem) {
qDebug() << Q_FUNC_INFO << metaInfo.typeName() << "is not a QtQuick.Item";
foreach (const NodeMetaInfo &superClass, metaInfo.superClasses()) {
qDebug() << superClass.typeName();
}
if (!isItem) {
qDebug() << Q_FUNC_INFO;
qDebug() << metaInfo.typeName() << "is not a QtQuick.Item";
qDebug() << Utils::transform(metaInfo.superClasses(), &NodeMetaInfo::typeName);
}
if (valid
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment