Raise a error when try to modify a read-only property.

Add get function as mandatory in QProperty constructor.

Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
Renato Filho 2010-08-13 18:22:22 -03:00
commit 6bd528978c
3 changed files with 22 additions and 6 deletions

View file

@ -373,7 +373,6 @@ int SignalManager::qt_metacall(QObject* object, QMetaObject::Call call, int id,
Py_XDECREF(pp_name);
return id - metaObject->methodCount();
}
printf("access to property: %s-%s\n", mp.name(), mp.typeName());
typeResolver = Shiboken::TypeResolver::get(mp.typeName());
}