Debian Codegraph @

tests/resources/urihandler/UriHandlerTest.qml

raw ◀ ▶
1 Debian patch touch this file
1 /*
2 * Copyright 2013 Canonical Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Author: Loïc Molinari <[email protected]>
17 */
18
19 import QtQuick 2.0
20 import Lomiri.Components 1.1
21
22 Item {
23 id: mainView
24 width: 700
25 height: 100
26
27 Rectangle {
28 id: background
29 anchors.fill: parent
30 color: "black"
31 }
32
33 Text {
34 id: uri
35 anchors.fill: parent
36 horizontalAlignment: Text.AlignHCenter
37 verticalAlignment: Text.AlignVCenter
38 font.pixelSize: 20
39 font.bold: true
•40 font.family: "Noto Sans"
41 color: "white"
42 text: "Uri: \"\""
43 }
44
45 Connections {
46 target: UriHandler
47 onOpened: uri.text = "Uri: \"" + uris + "\""
48 }
49 }