~ubuntu-branches/ubuntu/saucy/webbrowser-app/saucy-proposed

« back to all changes in this revision

Viewing changes to src/app/webbrowser-app.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-07-31 10:35:29 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130731103529-y3pnb53u111mpqep
Tags: upstream-0.22+13.10.20130731.1
Import upstream version 0.22+13.10.20130731.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This file is part of webbrowser-app.
 
5
 *
 
6
 * webbrowser-app is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * webbrowser-app is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
import QtQuick 2.0
 
20
import QtQuick.Window 2.0
 
21
import Ubuntu.Components 0.1
 
22
 
 
23
Window {
 
24
    property alias chromeless: browser.chromeless
 
25
    property alias qtwebkitdpr: browser.qtwebkitdpr
 
26
    property alias developerExtrasEnabled: browser.developerExtrasEnabled
 
27
 
 
28
    contentOrientation: browser.screenOrientation
 
29
 
 
30
    width: 800
 
31
    height: 600
 
32
 
 
33
    // TRANSLATORS: %1 refers to the current page’s title
 
34
    title: browser.title ? i18n.tr("%1 - Ubuntu Web Browser").arg(browser.title)
 
35
                         : i18n.tr("Ubuntu Web Browser")
 
36
 
 
37
    Browser {
 
38
        id: browser
 
39
        property int screenOrientation: Screen.orientation
 
40
        anchors.fill: parent
 
41
    }
 
42
 
 
43
    function newTab(url, setCurrent) {
 
44
        return browser.newTab(url, setCurrent)
 
45
    }
 
46
 
 
47
    Component.onCompleted: {
 
48
        i18n.domain = "webbrowser-app"
 
49
    }
 
50
}