bool RenderableZoneEntityItem::setProperties(const EntityItemProperties& properties) {
    bool somethingChanged = false;
    changeProperties([&]() {
        somethingChanged = this->ZoneEntityItem::setProperties(properties);
    });
    return somethingChanged;
}
int RenderableZoneEntityItem::readEntitySubclassDataFromBuffer(const unsigned char* data, int bytesLeftToRead,
                                                                ReadBitstreamToTreeParams& args,
                                                                EntityPropertyFlags& propertyFlags, bool overwriteLocalData) {
    int bytesRead = 0;
    changeProperties([&]() {
        bytesRead = ZoneEntityItem::readEntitySubclassDataFromBuffer(data, bytesLeftToRead,
                                                                     args, propertyFlags, overwriteLocalData);
    });
    return bytesRead;
}
Exemple #3
0
int main(int argc, char** argv)
{
  QCoreApplication app(argc, argv);
  PropertyTestObject obj;
  QTimer timer;
  QObject::connect(&timer, SIGNAL(timeout()), obj.changingPropertyObject(), SLOT(changeProperties()));
  timer.start(5000);

  return app.exec();
}
Exemple #4
0
void UDisksJob::propertiesChanged(const QVariantMap &properties, const QStringList &invalidProperties)
{
    Q_D(UDisksJob);
    changeProperties(d->properties, properties, invalidProperties);
}