diff options
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/WebKit/qt/WidgetApi/qwebpage.cpp | 2 | ||||
| -rw-r--r-- | Source/WebKit/qt/WidgetSupport/QtFallbackWebPopup.cpp | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebpage.cpp b/Source/WebKit/qt/WidgetApi/qwebpage.cpp index cb9559e33..05caf7134 100644 --- a/Source/WebKit/qt/WidgetApi/qwebpage.cpp +++ b/Source/WebKit/qt/WidgetApi/qwebpage.cpp @@ -438,8 +438,10 @@ QtPluginWidgetAdapter *QWebPagePrivate::adapterForWidget(QObject *object) const { if (QWidget *widget = qobject_cast<QWidget*>(object)) return new QWidgetPluginImpl(widget); +#ifndef QT_NO_GRAPHICSVIEW if (QGraphicsWidget *widget = qobject_cast<QGraphicsWidget*>(object)) return new QGraphicsWidgetPluginImpl(widget); +#endif return 0; } diff --git a/Source/WebKit/qt/WidgetSupport/QtFallbackWebPopup.cpp b/Source/WebKit/qt/WidgetSupport/QtFallbackWebPopup.cpp index b2fbf624a..5bf90d800 100644 --- a/Source/WebKit/qt/WidgetSupport/QtFallbackWebPopup.cpp +++ b/Source/WebKit/qt/WidgetSupport/QtFallbackWebPopup.cpp @@ -58,10 +58,14 @@ void QtFallbackWebPopup::show(const QWebSelectData& data) populate(data); QRect rect = geometry(); +#ifdef QT_NO_GRAPHICSVIEW + if (false) { +#else if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(pageClient()->pluginParent())) { QGraphicsProxyWidget* proxy = new QGraphicsProxyWidget(webView); proxy->setWidget(m_combo); proxy->setGeometry(rect); +#endif } else { m_combo->setParent(qobject_cast<QWidget*>(pageClient()->ownerWidget())); m_combo->setGeometry(QRect(rect.left(), rect.top(), rect.width(), m_combo->sizeHint().height())); |
