Debian Codegraph @

src/qml/common/visibilityBehaviors/BaseBehavior.qml

raw
1 /*
2 * This file is part of unity-2d
3 *
4 * Copyright 2012 Canonical Ltd.
5 *
6 * This program 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.
9 *
10 * This program 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.
14 *
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/>.
17 */
18
19 import QtQuick 2.0
20
21 Item {
22 // true if the behaviour wants the target to be shown, false otherwise
23 property bool shown
24
25 // The target the behavior will be deciding if has to be shown or not
26 property variant target
27
28 // Whether the target has been shown by an external reason
29 property bool forcedVisible: false
30
31 // Whether the target has been hidden by an external reason
32 property bool forcedHidden: false
33
34 // The id that triggered the last forcedVisible change
35 property variant forcedVisibleChangeId
36 }