Changeset View
Changeset View
Standalone View
Standalone View
mobile/app/package/contents/ui/TableOfContents.qml
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public | 14 | * You should have received a copy of the GNU General Public | ||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | import QtQuick 2.1 | 20 | import QtQuick 2.1 | ||
21 | import QtQuick.Controls 2.0 as QQC2 | 21 | import QtQuick.Controls 2.2 as QQC2 | ||
22 | import org.kde.kirigami 2.0 as Kirigami | 22 | import org.kde.kirigami 2.0 as Kirigami | ||
23 | 23 | | |||
24 | Kirigami.Page { | 24 | Kirigami.Page { | ||
25 | id: root | 25 | id: root | ||
26 | leftPadding: 0 | 26 | leftPadding: 0 | ||
27 | topPadding: 0 | 27 | topPadding: 0 | ||
28 | rightPadding: 0 | 28 | rightPadding: 0 | ||
29 | bottomPadding: 0 | 29 | bottomPadding: 0 | ||
30 | property alias contentY: flickable.contentY | 30 | property alias tocContentY: flickable.contentY | ||
31 | property alias contentHeight: flickable.contentHeight | 31 | property alias tocContentHeight: flickable.contentHeight | ||
32 | 32 | | |||
33 | QQC2.ToolBar { | 33 | QQC2.ToolBar { | ||
34 | id: toolBarContent | 34 | id: toolBarContent | ||
35 | width: root.width | 35 | width: root.width | ||
36 | height: searchField.height | 36 | contentItem: QQC2.TextField { | ||
37 | TextField { | | |||
38 | id: searchField | 37 | id: searchField | ||
39 | anchors.centerIn: parent | 38 | placeholderText: i18n("Search...") | ||
40 | } | 39 | } | ||
41 | } | 40 | } | ||
42 | QQC2.ScrollView { | 41 | QQC2.ScrollView { | ||
43 | anchors { | 42 | anchors { | ||
44 | left: parent.left | 43 | left: parent.left | ||
45 | top: toolBarContent.bottom | 44 | top: toolBarContent.bottom | ||
46 | right: parent.right | 45 | right: parent.right | ||
47 | bottom: parent.bottom | 46 | bottom: parent.bottom | ||
Show All 24 Lines |