~dbarth/unity-webapps-qml/temporary-trunk

« back to all changes in this revision

Viewing changes to examples/api-bindings/content-hub-exporter/main.qml.in

  • Committer: Tarmac
  • Author(s): Alexandre Abreu
  • Date: 2014-02-03 23:30:23 UTC
  • mfrom: (76.2.9 fix-content-hub-exports)
  • Revision ID: tarmac-20140203233023-z1yg781gv36tbqod
Fix content hub export.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import QtWebKit 3.0 
 
3
import QtWebKit.experimental 1.0
 
4
import Ubuntu.Components 0.1
 
5
import Ubuntu.UnityWebApps 0.1
 
6
 
 
7
Item {
 
8
  id: root
 
9
  focus: true
 
10
 
 
11
  width: units.gu(100)
 
12
  height: units.gu(100)
 
13
 
 
14
  WebView {
 
15
    id: webview
 
16
    anchors.fill: parent
 
17
    url: \"file://$$OUT_PWD/content-hub-exporter/www/index.html\"
 
18
 
 
19
    experimental.preferences.navigatorQtObjectEnabled: true
 
20
    experimental.preferences.developerExtrasEnabled: true
 
21
 
 
22
    function getUnityWebappsProxies() {
 
23
        return UnityWebAppsUtils.makeProxiesForQtWebViewBindee(webview);
 
24
    }
 
25
 
 
26
    UnityWebApps {
 
27
        id: webapps
 
28
        bindee: webview
 
29
    }
 
30
  }
 
31
}