2
* Copyright 2014 Canonical Ltd.
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.
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.
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/>.
20
\qmltype PageHeadSections
21
\inqmlmodule Ubuntu.Components 1.1
23
\since Ubuntu.Components 1.1
24
\brief PageHeadSections is used to configure the sections for a \l Page.
26
These sections will be shown in the bottom part of the header. This component does not
27
need to be instantiated by the developer, it is automatically part of \l PageHeadConfiguration.
30
// To be used inside PageHeadConfiguration
34
Set this property to false to disable user interaction to change the selected section.
37
property bool enabled: true
40
List of strings that represent section names. Example:
42
import Ubuntu.Components 1.1
49
useDeprecatedToolbar: false
56
model: ["one", "two", "three"]
61
anchors.centerIn: parent
62
text: "Section " + page.head.sections.selectedIndex
71
The index of the currently selected section in \l model.
73
property int selectedIndex: model ? 0 : -1