Changeset View
Changeset View
Standalone View
Standalone View
tests/ScrollPaddingScrollable.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez <aleixpol@kde.org> | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: LGPL-2.0-or-later | ||||
5 | */ | ||||
6 | | ||||
7 | import QtQuick 2.7 | ||||
8 | import QtQuick.Controls 2.0 | ||||
9 | import QtQuick.Layouts 1.0 | ||||
10 | import org.kde.kirigami 2.4 as Kirigami | ||||
11 | | ||||
12 | Kirigami.ApplicationWindow | ||||
13 | { | ||||
14 | id: main | ||||
15 | Component { | ||||
16 | id: keyPage | ||||
17 | Kirigami.ScrollablePage { | ||||
18 | leftPadding: 200 | ||||
19 | ColumnLayout { | ||||
20 | Repeater { | ||||
21 | model: 200 | ||||
22 | delegate: Label { | ||||
23 | text: "Potato" | ||||
24 | } | ||||
25 | } | ||||
26 | } | ||||
27 | } | ||||
28 | } | ||||
29 | | ||||
30 | header: Text { | ||||
31 | text: "focus:" + activeFocusItem + " current: " + main.pageStack.currentIndex | ||||
32 | } | ||||
33 | | ||||
34 | Component.onCompleted: { | ||||
35 | main.pageStack.push(keyPage) | ||||
36 | } | ||||
37 | } |