From 74a3dc292d3e48e74836fb953fe793b65e652c54 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Mon, 18 Jan 2010 16:13:19 +0100 Subject: Change the prefered content size of the anomaly browser Having the prefered content size equals to the screen size gives some bad layout on devices. --- demos/embedded/anomaly/src/webview.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demos/embedded/anomaly/src/webview.cpp b/demos/embedded/anomaly/src/webview.cpp index d55c68e..ffcb6bc 100644 --- a/demos/embedded/anomaly/src/webview.cpp +++ b/demos/embedded/anomaly/src/webview.cpp @@ -1,6 +1,7 @@ #include "webview.h" #include +#include WebView::WebView(QWidget *parent) : QWebView(parent) @@ -8,6 +9,7 @@ WebView::WebView(QWidget *parent) { connect(this, SIGNAL(loadStarted()), this, SLOT(newPageLoading())); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(pageLoaded(bool))); + page()->setPreferredContentsSize(QSize(1024, 768)); } void WebView::paintEvent(QPaintEvent *event) -- cgit v0.12