2
* Copyright 2013 Canonical Ltd.
4
* This file is part of webbrowser-app.
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.
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.
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/>.
20
import QtQuick.Window 2.0
21
import Ubuntu.Components 0.1
24
property alias chromeless: browser.chromeless
25
property alias qtwebkitdpr: browser.qtwebkitdpr
26
property alias developerExtrasEnabled: browser.developerExtrasEnabled
28
contentOrientation: browser.screenOrientation
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")
39
property int screenOrientation: Screen.orientation
43
function newTab(url, setCurrent) {
44
return browser.newTab(url, setCurrent)
47
Component.onCompleted: {
48
i18n.domain = "webbrowser-app"