2 * Copyright (C) 2015 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
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 General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 readonly property int useNativeOrientation: -1
24 property int primaryOrientation: useNativeOrientation
26 property int supportedOrientations: Qt.PortraitOrientation
27 | Qt.InvertedPortraitOrientation
28 | Qt.LandscapeOrientation
29 | Qt.InvertedLandscapeOrientation
31 // Supported values so far:
32 // "phone", "tablet" or "desktop"
33 property string category: "phone"
35 property int ignoredMice: 0
38 property alias name: root.state
45 supportedOrientations: Qt.PortraitOrientation
46 | Qt.LandscapeOrientation
47 | Qt.InvertedLandscapeOrientation
54 supportedOrientations: Qt.PortraitOrientation
55 | Qt.LandscapeOrientation
56 | Qt.InvertedLandscapeOrientation
63 supportedOrientations: Qt.PortraitOrientation
64 | Qt.LandscapeOrientation
65 | Qt.InvertedLandscapeOrientation
80 primaryOrientation: Qt.InvertedLandscapeOrientation