summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2018-08-31 14:16:45 +0200
committerPeter Varga <pvarga@inf.u-szeged.hu>2018-09-06 14:57:38 +0000
commit964b882c0817b2dc8ebd631658b4faac926b0145 (patch)
tree09b20ed1f0fabff3f034e8b0aee040de2b868767
parent80e2c7a47b51a09247c86b220be4abcf298e3f69 (diff)
Fix focus for inputmethods manual test
Change-Id: I9e154fd94a2d6e9dacb80efba2c4a6ff260e9514 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--tests/manual/widgets/inputmethods/webview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/widgets/inputmethods/webview.cpp b/tests/manual/widgets/inputmethods/webview.cpp
index ac5dadce1..62e210ecf 100644
--- a/tests/manual/widgets/inputmethods/webview.cpp
+++ b/tests/manual/widgets/inputmethods/webview.cpp
@@ -27,6 +27,7 @@
****************************************************************************/
#include "webview.h"
+#include <QWebEngineSettings>
WebView::WebView(QWidget *parent)
: QWebEngineView(parent)
@@ -46,5 +47,6 @@ WebView::WebView(QWidget *parent)
" <input type='text' id='input1' />"
"</body></html>");
+ settings()->setAttribute(QWebEngineSettings::FocusOnNavigationEnabled, true);
setHtml(html);
}