summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@openbossa.org>2012-06-12 22:41:08 -0300
committerAlexis Menard <alexis.menard@openbossa.org>2012-06-13 09:22:09 -0300
commit55ddacd95da1b1401a37299d9e0089f04380819d (patch)
treecf5da0280465a3ba819f537406a588a110c81e68
parent6c11185308eb60d30d7989fa8cb2e8550d573f45 (diff)
downloadsnowshoe-55ddacd95da1b1401a37299d9e0089f04380819d.tar.gz
Activate QStyle theme for the desktop version.
There is no way to make custom scrollbars on the UIProcess side because the way the flickable is handled in desktop mode. View = Content so we can't get infos in QML about scrolling as there is no scrolling possible. The mobile RenderTheme doesn't have an implementation for the scrollbar (as it assumes you can do it in the UIProcess) so we can fallback to the QStyle RenderTheme. I think it is fine for snowshoe desktop to use it, it is anyway way better than the mobile one (IMHO). Reviewed-by: Caio Oliveira
-rw-r--r--src/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 69da3d8..b21762a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -54,6 +54,7 @@ int main(int argc, char** argv)
if (pos != -1)
arguments.removeAt(pos);
arguments = arguments.mid(1);
+ qputenv("QT_WEBKIT_THEME_NAME", "qstyle");
qputenv("QTWEBKIT_INSPECTOR_SERVER", "127.0.0.1:9222");
QQuickWebViewExperimental::setFlickableViewportEnabled(false);
window = new BrowserWindow(arguments);