Debian Codegraph @

src/imports/Components/Styles/1.2/PageHeadStyle.qml

raw
1 /*
2 * Copyright 2014-2015 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 import QtQuick 2.4
17
18 /*!
19 \qmltype PageHeadStyle
20 \inqmlmodule Lomiri.Components.Styles 1.1
21 \ingroup style-api
22 \brief Style API for page header.
23
24 The component defines the style API for the page header component.
25 */
26 Item {
27 /*!
28 The height of the header excluding the height of the bottom divider and
29 the (optional) row that displays the sections.
30 */
31 property real contentHeight
32
33 /*!
34 The source of the image that separates the header from the contents of a \l MainView.
35 The separator will be drawn over the contents. Set to empty string to use the new
36 header separator.
37 \deprecated
38 */
39 property url separatorSource
40
41 /*!
42 The source of an additional image attached to the bottom of the separator. The contents
43 of the \l MainView will be drawn on top of the separator bottom image.
44 This property is ignored when separatorSource is an empty string.
45 \deprecated
46 */
47 property url separatorBottomSource
48
49 /*!
50 The size of the title font.
51 */
52 property string fontSize
53
54 /*!
55 The weight of the title font.
56 */
57 property int fontWeight
58
59 /*!
60 \deprecated
61 */
62 property color textColor
63
64 /*!
65 Left margin of title text.
66 */
67 property real textLeftMargin
68
69 /*!
70 The number of slots for actions in the header, including the optional
71 (custom or automatic) back button in the left side of the header.
72 If the number of actions defined is larger than the numer of actions
73 specified here, extra actions are put into an overflow.
74 */
75 property int maximumNumberOfActions
76 }