summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2012-05-10 16:30:26 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-05-10 17:38:24 -0300
commit0d10ba2119f9a8f53d0eec122c61ff56368865d3 (patch)
tree3cdca7e9350cb75e3936f3f8a1712d82dd069db0
parente5c03810bf6d982b31733b59ff4525280e9de255 (diff)
Use preferredMinimumContentsWidth = 980 and devicePixelRatio = 1.5
According to Qt documentation the default value of preferredMinimumContentsWidth is now zero, not suitable for mobile screens, 980 is a magical number that proved to work great on the majority of websites. The default value of devicePixelRatio is 1, but 1.5 show better results on N9 screen. Reviewed-by: Jesus Sanchez-Palencia
-rw-r--r--src/mobile/qml/SnowshoeWebView.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mobile/qml/SnowshoeWebView.qml b/src/mobile/qml/SnowshoeWebView.qml
index 5a11b68..89aaf10 100644
--- a/src/mobile/qml/SnowshoeWebView.qml
+++ b/src/mobile/qml/SnowshoeWebView.qml
@@ -16,6 +16,7 @@
import QtQuick 2.0
import QtWebKit 3.0
+import QtWebKit.experimental 1.0
import "UiConstants.js" as UiConstants
@@ -50,6 +51,9 @@ Item {
anchors.fill: parent
enabled: webViewItem.active && webViewItem.interactive
+ experimental.preferredMinimumContentsWidth: 980
+ experimental.devicePixelRatio: 1.5
+
onLoadingChanged: {
if (webView.url == "about:blank")
return;