summaryrefslogtreecommitdiffstats
path: root/src/webengine/api/qquickwebengineview_p.h
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2014-03-05 03:37:04 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-13 16:21:15 +0100
commitc47bc7986e3a158fcb505992df084372a4a0e3bf (patch)
tree6a3b76d005b6b29071bd47417ff13e5e8bb4e94f /src/webengine/api/qquickwebengineview_p.h
parentd1deca6c120bf5087d22b506d8994884598a7987 (diff)
Fix focus in Quick API
The forceActiveFocus() doesn't work in the QML tests. We need to call forceActiveFocus() in RenderWidgetHostViewQtDelegateQuick instead of the one in WebEngineView. To make this work, I replaced RWHV with QQuickWebEngineView in the focus chain. This is necessary in order to extend tst_loadUrl QML test with urlProperty test case. Change-Id: Ifba0c824a7ce9f00d328110233402d3563f967aa Reviewed-by: Zeno Albisser <zeno.albisser@digia.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'src/webengine/api/qquickwebengineview_p.h')
-rw-r--r--src/webengine/api/qquickwebengineview_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/webengine/api/qquickwebengineview_p.h b/src/webengine/api/qquickwebengineview_p.h
index f17f5d11..3ad2e59b 100644
--- a/src/webengine/api/qquickwebengineview_p.h
+++ b/src/webengine/api/qquickwebengineview_p.h
@@ -78,6 +78,7 @@ public:
bool canGoForward() const;
bool inspectable() const;
void setInspectable(bool);
+ void forceActiveFocus();
enum LoadStatus {
LoadStartedStatus,