void QGalleryAbstractRequest::setGallery(QAbstractGallery *gallery) { if (d_ptr->gallery.data() != gallery) { d_ptr->gallery = gallery; emit galleryChanged(); emit supportedChanged(); } }
ExampleSink::ExampleSink(AbstractRoutingEngine* engine, map<string, string> config): AbstractSink(engine, config) { routingEngine->subscribeToProperty(VehicleProperty::EngineSpeed, this); routingEngine->subscribeToProperty(VehicleProperty::VehicleSpeed, this); routingEngine->subscribeToProperty(VehicleProperty::Latitude, this); routingEngine->subscribeToProperty(VehicleProperty::Longitude, this); routingEngine->subscribeToProperty(VehicleProperty::ExteriorBrightness, this); supportedChanged(engine->supported()); }