| 1 |
/* |
| 2 |
* Copyright 2012 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 |
|
| 17 |
import QtQuick 2.4 |
| 18 |
import Lomiri.Components 2.0 |
| 19 |
|
| 20 |
/*! |
| 21 |
\qmltype ActionList |
| 22 |
\inqmlmodule Lomiri.Components |
| 23 |
\ingroup lomiri |
| 24 |
\brief List of \l Action items |
| 25 |
*/ |
| 26 |
|
| 27 |
QtObject { |
| 28 |
id: list |
| 29 |
// internal objects using nested elements, |
| 30 |
// which isn't allowed by QtObject; this fix makes this possible |
| 31 |
/*! |
| 32 |
Default property to allow adding of children. |
| 33 |
\qmlproperty list<Action> children |
| 34 |
\default |
| 35 |
*/ |
| 36 |
default property alias children: list.actions |
| 37 |
|
| 38 |
/*! |
| 39 |
List of already defined actions when not defining them as children of the ActionList. |
| 40 |
Note that when you set this property, the children of the ActionList will be ignored, |
| 41 |
so do not set the list and define children. |
| 42 |
|
| 43 |
The advantage of setting actions over using the children is that the same |
| 44 |
\l Action items can be used in several sets of actions. |
| 45 |
*/ |
| 46 |
property list<Action> actions |
| 47 |
} |