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 1.3 | | |||
22 | import QtQuick.Controls 2.0 as QQC2 | 21 | import QtQuick.Controls 2.0 as QQC2 | ||
23 | import org.kde.kirigami 2.0 as Kirigami | 22 | import org.kde.kirigami 2.0 as Kirigami | ||
24 | 23 | | |||
25 | Kirigami.Page { | 24 | Kirigami.Page { | ||
26 | id: root | 25 | id: root | ||
27 | leftPadding: 0 | 26 | leftPadding: 0 | ||
28 | topPadding: 0 | 27 | topPadding: 0 | ||
29 | rightPadding: 0 | 28 | rightPadding: 0 | ||
30 | bottomPadding: 0 | 29 | bottomPadding: 0 | ||
31 | property alias contentY: flickable.contentY | 30 | property alias contentY: flickable.contentY | ||
32 | property alias contentHeight: flickable.contentHeight | 31 | property alias contentHeight: flickable.contentHeight | ||
33 | 32 | | |||
34 | QQC2.ToolBar { | 33 | QQC2.ToolBar { | ||
35 | id: toolBarContent | 34 | id: toolBarContent | ||
36 | width: root.width | 35 | width: root.width | ||
37 | height: searchField.height | 36 | height: searchField.height | ||
38 | QQC2.TextField { | 37 | TextField { | ||
39 | id: searchField | 38 | id: searchField | ||
40 | anchors.centerIn: parent | 39 | anchors.centerIn: parent | ||
41 | } | 40 | } | ||
42 | } | 41 | } | ||
43 | ScrollView { | 42 | QQC2.ScrollView { | ||
44 | anchors { | 43 | anchors { | ||
45 | left: parent.left | 44 | left: parent.left | ||
46 | top: toolBarContent.bottom | 45 | top: toolBarContent.bottom | ||
47 | right: parent.right | 46 | right: parent.right | ||
48 | bottom: parent.bottom | 47 | bottom: parent.bottom | ||
49 | } | 48 | } | ||
50 | 49 | | |||
51 | Flickable { | 50 | Flickable { | ||
Show All 21 Lines |