diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-01-18 15:13:19 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2010-01-18 15:13:19 (GMT) |
commit | 74a3dc292d3e48e74836fb953fe793b65e652c54 (patch) | |
tree | a19eb4f3711bb3a68195e1a4b0ba65c514c92f0b | |
parent | ee889d2404f6a55a8fae812dc5809dc805905d2b (diff) | |
download | Qt-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.
-rw-r--r-- | demos/embedded/anomaly/src/webview.cpp | 2 |
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) |