summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
diff options
context:
space:
mode:
authorMichael Bruning <michael.bruning@theqtcompany.com>2015-02-23 16:20:37 +0100
committerMichael BrĂ¼ning <michael.bruning@theqtcompany.com>2015-02-26 11:43:32 +0000
commit67aba37ab361fc117366e283365920013b8d8464 (patch)
tree61a15569cb95ca754a17399cf0a557c621d83951 /Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
parent877fe7d55036492a897d0928fe43d5df2bc6e2e5 (diff)
downloadqtwebkit-67aba37ab361fc117366e283365920013b8d8464.tar.gz
Forward show and hide events to PluginViews
This was causing issues with windows plugins on windows, which were always visible on top of all other widgets and not hidden correctly when the owning web view was hidden. Task-number: QTBUG-44401 Task-number: QTBUG-42588 Task-number: QTBUG-43024 Change-Id: Ie0307fa2f7b2bf59f51a76db5feef2e8446c359d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'Source/WebKit/qt/WidgetSupport/PageClientQt.cpp')
-rw-r--r--Source/WebKit/qt/WidgetSupport/PageClientQt.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp b/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
index 8333a59cc..858290f6e 100644
--- a/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
+++ b/Source/WebKit/qt/WidgetSupport/PageClientQt.cpp
@@ -157,6 +157,11 @@ void PageClientQWidget::setWidgetVisible(Widget* widget, bool visible)
qtWidget->setVisible(visible);
}
+bool PageClientQWidget::isViewVisible()
+{
+ return view ? view->isVisible() : false;
+}
+
#if !defined(QT_NO_GRAPHICSVIEW)
PageClientQGraphicsWidget::~PageClientQGraphicsWidget()
{
@@ -343,6 +348,11 @@ QGraphicsView* PageClientQGraphicsWidget::firstGraphicsView() const
return view->scene()->views().first();
return 0;
}
+
+bool PageClientQGraphicsWidget::isViewVisible()
+{
+ return view ? view->isVisible() : false;
+}
#endif // QT_NO_GRAPHICSVIEW
} // namespace WebCore