summaryrefslogtreecommitdiffstats
path: root/examples/webenginewidgets/contentmanipulation
diff options
context:
space:
mode:
authorSzabolcs David <davidsz@inf.u-szeged.hu>2018-03-29 15:27:06 +0200
committerSzabolcs David <davidsz@inf.u-szeged.hu>2018-05-09 09:22:22 +0000
commitf8898170a77593e314d3cd187f259223e9bff0f8 (patch)
tree4a3a4eccd7699394702df07b7661b749b6e61ebb /examples/webenginewidgets/contentmanipulation
parent9b03a98ffb807f49d1e79fffad141a3634474d8a (diff)
Remove hardcoded size from QWebEngineView::sizeHint()
800x600 takes more space than expected when building a layout which contains QWebEngineView. Now this function does exactly the same as QWidget::sizeHint(). Add an auto test and update examples which were depending on this hardcoded size. Change-Id: I3b34b7d37cc99a8d6a49100d6c4b66b5b6a1c999 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'examples/webenginewidgets/contentmanipulation')
-rw-r--r--examples/webenginewidgets/contentmanipulation/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/webenginewidgets/contentmanipulation/main.cpp b/examples/webenginewidgets/contentmanipulation/main.cpp
index 5645f9b9..e816079d 100644
--- a/examples/webenginewidgets/contentmanipulation/main.cpp
+++ b/examples/webenginewidgets/contentmanipulation/main.cpp
@@ -63,6 +63,7 @@ int main(int argc, char * argv[])
else
url = QUrl("http://www.google.com/ncr");
MainWindow *browser = new MainWindow(url);
+ browser->resize(1024, 768);
browser->show();
return app.exec();
}