summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2010-01-18 15:13:19 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2010-01-18 15:13:19 (GMT)
commit74a3dc292d3e48e74836fb953fe793b65e652c54 (patch)
treea19eb4f3711bb3a68195e1a4b0ba65c514c92f0b /demos
parentee889d2404f6a55a8fae812dc5809dc805905d2b (diff)
downloadQt-74a3dc292d3e48e74836fb953fe793b65e652c54.zip
Qt-74a3dc292d3e48e74836fb953fe793b65e652c54.tar.gz
Qt-74a3dc292d3e48e74836fb953fe793b65e652c54.tar.bz2
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.
Diffstat (limited to 'demos')
-rw-r--r--demos/embedded/anomaly/src/webview.cpp2
1 files changed, 2 insertions, 0 deletions
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 <QPaintEvent>
+#include <QWebFrame>
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)