Workaround in WebView...

Alexis Ménard menard at kde.org
Mon Mar 22 01:34:46 CET 2010


Hello,


May i know where was the crash? Because i'm sure the workaround is not
needed anymore...

QVariant WebView::itemChange(GraphicsItemChange change, const QVariant &value)
{
    if (change == QGraphicsItem::ItemSceneHasChanged) {
        //FIXME: QWebPage _requires_ a QWidget view to not crash in
places such as
        // WebCore::PopupMenu::show() due to
hostWindow()->platformPageClient() == NULL
        // because QWebPage::d->client is NULL
        d->webView->page()->setView(viewFor(this));
    }
    return QGraphicsWidget::itemChange(change, value);
}

Thank you....


More information about the Plasma-devel mailing list