-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathmain.qml
42 lines (39 loc) · 1.51 KB
/
main.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/****************************************************************************
**
** Copyright (C) 2014 Alexander Rössler
** License: LGPL version 2.1
**
** This file is part of QtQuickVcp.
**
** All rights reserved. This program and the accompanying materials
** are made available under the terms of the GNU Lesser General Public License
** (LGPL) version 2.1 which accompanies this distribution, and is available at
** http://www.gnu.org/licenses/lgpl-2.1.html
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** Contributors:
** Alexander Rössler @ The Cool Tool GmbH <mail DOT aroessler AT gmail DOT com>
**
****************************************************************************/
import QtQuick 2.0
import QtQuick.Controls 1.1
import QtQuick.Window 2.0
ApplicationWindow {
id: applicationWindow
visibility: (Qt.platform.os === "android") ? ApplicationWindow.FullScreen: ApplicationWindow.AutomaticVisibility
visible: true
width: (Qt.platform.os == "android") ? Screen.width : Screen.width * 0.7
height: (Qt.platform.os == "android") ? Screen.height : Screen.height * 0.7
title: connectionWindow.title
toolBar: connectionWindow.toolBar
statusBar: connectionWindow.statusBar
menuBar: connectionWindow.menuBar
Init {
id: connectionWindow
anchors.fill: parent
}
}