void QtCamGraphicsViewfinder::setRenderingEnabled(bool enabled) {
  if (d_ptr->enabled != enabled) {
    d_ptr->enabled = enabled;

    emit renderingEnabledChanged();
  }
}
Exemplo n.º 2
0
void QDeclarativeWebView::setRenderingEnabled(bool enabled)
{
    if (d->rendering == enabled)
        return;
    d->rendering = enabled;
    emit renderingEnabledChanged();
    d->view->setTiledBackingStoreFrozen(!enabled);
}
Exemplo n.º 3
0
void VisualizationServiceProxy::onServiceRemoved(VisualizationService *service)
{
    disconnect(service, &VisualizationService::activeViewChanged, this, &VisualizationService::activeViewChanged);
    disconnect(service, &VisualizationService::fps, this, &VisualizationService::fps);
    disconnect(service, &VisualizationService::activeLayoutChanged, this, &VisualizationService::activeLayoutChanged);
    disconnect(service, &VisualizationService::renderingEnabledChanged, this, &VisualizationService::renderingEnabledChanged);

    mVisualizationService = VisualizationService::getNullObject();

    emit activeLayoutChanged();
    emit activeViewChanged();
    emit renderingEnabledChanged();
}
Exemplo n.º 4
0
void VisualizationServiceProxy::onServiceAdded(VisualizationService* service)
{
    mVisualizationService.reset(service, null_deleter());

    connect(service, &VisualizationService::activeViewChanged, this, &VisualizationService::activeViewChanged);
    connect(service, &VisualizationService::fps, this, &VisualizationService::fps);
    connect(service, &VisualizationService::activeLayoutChanged, this, &VisualizationService::activeLayoutChanged);
    connect(service, &VisualizationService::renderingEnabledChanged, this, &VisualizationService::renderingEnabledChanged);

    emit activeLayoutChanged();
    emit activeViewChanged();
    emit renderingEnabledChanged();
}