Esempio n. 1
0
void QWKPagePrivate::didRelaunchProcess()
{
    QGraphicsWKView* wkView = static_cast<QGraphicsWKView*>(view);
    if (wkView)
        q->setViewportSize(wkView->size().toSize());

    isConnectedToEngine = true;
    emit q->engineConnectionChanged(true);
}
Esempio n. 2
0
void QGraphicsWKViewPrivate::commitScale()
{
#if ENABLE(TILED_BACKING_STORE)
    DrawingAreaProxy* drawingArea = page->d->page->drawingArea();
    float newScale = q->scale();
    if (drawingArea->type() == DrawingAreaTypeTiled) {
        TiledDrawingAreaProxy* tiledDrawingArea = static_cast<TiledDrawingAreaProxy*>(drawingArea);
        if (tiledDrawingArea->contentsScale() == newScale)
            return;
        tiledDrawingArea->setContentsScale(newScale);
    }
#endif
}
Esempio n. 3
0
void QGraphicsWKViewPrivate::commitScale()
{
#if ENABLE(TILED_BACKING_STORE)
    DrawingAreaProxy* drawingArea = page->d->page->drawingArea();
    float newScale = q->scale();
    if (drawingArea->info().type == DrawingAreaProxy::TiledDrawingAreaType) {
        TiledDrawingAreaProxy* tiledDrawingArea = static_cast<TiledDrawingAreaProxy*>(drawingArea);
        if (tiledDrawingArea->contentsScale() == newScale)
            return;
        tiledDrawingArea->setContentsScale(newScale);
        // For now we block until complete.
        tiledDrawingArea->waitUntilUpdatesComplete();
    }
#endif
}
Esempio n. 4
0
void QGraphicsWKViewPrivate::onToolTipChanged(const QString& toolTip)
{
    q->setToolTip(toolTip);
}