~abreu-alexandre/unity-webapps-qml/location-specific-homepage

« back to all changes in this revision

Viewing changes to examples/api-bindings/alarm/main.qml.in

  • Committer: CI bot
  • Author(s): Alexandre Abreu
  • Date: 2014-11-22 00:47:15 UTC
  • mfrom: (135.1.1 latest)
  • Revision ID: ps-jenkins@lists.canonical.com-20141122004715-r8ae4r6ih5ktx280
Port qml bindings to oxide Fixes: #1374100

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import QtQuick 2.0
2
 
import QtWebKit 3.0 
3
 
import QtWebKit.experimental 1.0
 
2
import com.canonical.Oxide 1.0
4
3
import Ubuntu.Components 0.1
5
4
import Ubuntu.UnityWebApps 0.1
6
5
 
 
6
 
7
7
Item {
8
8
  id: root
9
9
  focus: true
16
16
    anchors.fill: parent
17
17
    url: \"file://$$OUT_PWD/alarm/www/index.html\"
18
18
 
19
 
    experimental.preferences.navigatorQtObjectEnabled: true
20
 
    experimental.preferences.developerExtrasEnabled: true
 
19
    context: WebContext { }
21
20
 
22
21
    function getUnityWebappsProxies() {
23
 
        return UnityWebAppsUtils.makeProxiesForQtWebViewBindee(webview);
 
22
        return UnityWebAppsUtils.makeProxiesForWebViewBindee(webview);
24
23
    }
 
24
  }
25
25
 
26
 
    UnityWebApps {
27
 
        id: webapps
28
 
        bindee: webview
29
 
        injectExtraUbuntuApis: true
30
 
    }
 
26
  UnityWebApps {
 
27
    id: webapps
 
28
    bindee: webview
 
29
    injectExtraUbuntuApis: true
31
30
  }
32
31
}