/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
QVariant::Type variantType = QVariant::nameToType(method.typeName());
if (variantType == QVariant::Invalid && !QByteArray(method.typeName()).isEmpty()) {
- qWarning() << "SyncableObject::toVariantMap(): cannot fetch init data for:" << this << method.signature() << "- Returntype is unknown to Qt's MetaSystem:" << QByteArray(method.typeName());
+ qWarning() << "SyncableObject::toVariantMap(): cannot fetch init data for:" << this << method.methodSignature() << "- Returntype is unknown to Qt's MetaSystem:" << QByteArray(method.typeName());
continue;
}
QVariant value(variantType, (const void *)0);
QGenericReturnArgument genericvalue = QGenericReturnArgument(method.typeName(), value.data());
- QMetaObject::invokeMethod(this, methodname.toAscii(), genericvalue);
+ QMetaObject::invokeMethod(this, methodname.toLatin1(), genericvalue);
properties[SignalProxy::ExtendedMetaObject::methodBaseName(method)] = value;
}
while (iterator != properties.constEnd()) {
propName = iterator.key();
if (propName == "objectName") {
- iterator++;
+ ++iterator;
continue;
}
- int propertyIndex = meta->indexOfProperty(propName.toAscii());
+ int propertyIndex = meta->indexOfProperty(propName.toLatin1());
if (propertyIndex == -1 || !meta->property(propertyIndex).isWritable())
setInitValue(propName, iterator.value());
else
- setProperty(propName.toAscii(), iterator.value());
+ setProperty(propName.toLatin1(), iterator.value());
// qDebug() << "<<< SYNC:" << name << iterator.value();
- iterator++;
+ ++iterator;
}
}
handlername[7] = handlername[7].toUpper();
QString methodSignature = QString("%1(%2)").arg(handlername).arg(value.typeName());
- int methodIdx = metaObject()->indexOfMethod(methodSignature.toAscii().constData());
+ int methodIdx = metaObject()->indexOfMethod(methodSignature.toLatin1().constData());
if (methodIdx < 0) {
- QByteArray normedMethodName = QMetaObject::normalizedSignature(methodSignature.toAscii().constData());
+ QByteArray normedMethodName = QMetaObject::normalizedSignature(methodSignature.toLatin1().constData());
methodIdx = metaObject()->indexOfMethod(normedMethodName.constData());
}
if (methodIdx < 0) {
}
QGenericArgument param(value.typeName(), value.constData());
- return QMetaObject::invokeMethod(this, handlername.toAscii(), param);
+ return QMetaObject::invokeMethod(this, handlername.toLatin1(), param);
}