summaryrefslogtreecommitdiff
path: root/prototype_2016/third_party/qml-material/src/controls/Action.qml
diff options
context:
space:
mode:
Diffstat (limited to 'prototype_2016/third_party/qml-material/src/controls/Action.qml')
-rw-r--r--prototype_2016/third_party/qml-material/src/controls/Action.qml66
1 files changed, 0 insertions, 66 deletions
diff --git a/prototype_2016/third_party/qml-material/src/controls/Action.qml b/prototype_2016/third_party/qml-material/src/controls/Action.qml
deleted file mode 100644
index a8ad35b..0000000
--- a/prototype_2016/third_party/qml-material/src/controls/Action.qml
+++ /dev/null
@@ -1,66 +0,0 @@
1/*
2 * QML Material - An application framework implementing Material Design.
3 *
4 * Copyright (C) 2014-2016 Michael Spencer <sonrisesoftware@gmail.com>
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0. If a copy of the MPL was not distributed with this
8 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 */
10
11import QtQuick 2.4
12import QtQuick.Controls 1.3 as Controls
13/*!
14 \qmltype Action
15 \inqmlmodule Material
16
17 \brief Represents an action shown in an action bar, context menu, or list.
18
19 One of the most common uses of actions is displaying actions in the action bar of a page
20 using the \l Page::actions property. See the example for \l Page for more details.
21 */
22Controls.Action {
23 id: action
24
25 /*!
26 Set to \c true to display a divider between this action and the next action. Used in lists
27 or context menus.
28 */
29 property bool hasDividerAfter
30
31 /*!
32 A URL pointing to an image to display as the icon. By default, this is
33 a special URL representing the icon named by \l iconName from the Material Design
34 icon collection or FontAwesome. The icon will be colorized using the specificed \l color,
35 unless you put ".color." in the filename, for example, "app-icon.color.svg".
36
37 \sa iconName
38 \sa Icon
39 */
40 property string iconSource: "icon://" + iconName
41
42 /*!
43 The text displayed for the action.
44 */
45 property string name
46
47 /*!
48 A short summary of the action, which may be displayed depending on the UI showing the
49 action. For example, a list of actions could display the summary as the secondary line of
50 text.
51 */
52 property string summary
53
54 /*!
55 Set to \c false to hide the action in the UI.
56 */
57 property bool visible: true
58
59 /*!
60 Set to \c true to rotate the icon 90 degrees on mouseover.
61 */
62 property bool hoverAnimation: false
63
64 property alias text: action.name
65 property alias tooltip: action.summary
66}