2 * Copyright (C) 2018 The UBports project
3 * Copyright (C) 2013, 2015 Canonical Ltd.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19import Lomiri.Components 1.3
26 // This is a bool instead of an alias because Loader classes like to emit
27 // changed signals for 'active' during startup even if they aren't actually
28 // changing values. Having it cached as a proper Qml bool property prevents
29 // unnecessary 'changed' emissions and provides consuming classes the
30 // expected behavior of no emission on startup.
31 readonly property bool active: loader.active
33 property bool isUpdate: System.isUpdate
35 // The wizard should be run at a later time if, for example, lomiri is
37 property bool deferred: false
39 hideAnimation: StandardAnimation { property: "opacity"; to: 0 }
43 System.wizardEnabled = false;
50 active: System.wizardEnabled && !deferred