forked from qt-creator/qt-creator
QmlPuppet: Fix warnings
Change-Id: I6bf708fbb0ad3c48dc286c78d25875e155e9d551 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
685cdfc0bf
commit
beec481241
@@ -302,7 +302,7 @@ static bool isCrashingType(QQmlType *type)
|
||||
return false;
|
||||
}
|
||||
|
||||
void readPropertyValue(QObject *object, const QByteArray &propertyName, QQmlContext *qmlContext, bool *ok)
|
||||
void readPropertyValue(QObject *, const QByteArray &, QQmlContext *, bool *)
|
||||
{
|
||||
#if QT_VERSION >= 0x056000
|
||||
DesignerSupport::readPropertyValue(object, propertyName, qmlContext, ok);
|
||||
@@ -336,7 +336,7 @@ QObject *createPrimitive(const QString &typeName, int majorNumber, int minorNumb
|
||||
} else if (type) {
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)) // TODO remove hack later if we only support >= 5.2
|
||||
if ( type->isComposite()) {
|
||||
object = ObjectNodeInstance::createComponent(type->sourceUrl(), context);
|
||||
object = createComponent(type->sourceUrl(), context);
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user