summaryrefslogtreecommitdiffstats
path: root/framework/qml/GridView.qml
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 18:39:51 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-07-21 18:39:51 +0200
commit2e0fbe4ba93fda2f90d4ddef56c35ab6ab9c3f0e (patch)
tree4b787ad28211312fb7f9c5c2ff03c60f701aab5c /framework/qml/GridView.qml
parentbdd54743c254ce6b8b4cfb04622323701a86dd04 (diff)
downloadkube-2e0fbe4ba93fda2f90d4ddef56c35ab6ab9c3f0e.tar.gz
kube-2e0fbe4ba93fda2f90d4ddef56c35ab6ab9c3f0e.zip
GridView based people view.
This enables keyboard navigation.
Diffstat (limited to 'framework/qml/GridView.qml')
-rw-r--r--framework/qml/GridView.qml33
1 files changed, 33 insertions, 0 deletions
diff --git a/framework/qml/GridView.qml b/framework/qml/GridView.qml
new file mode 100644
index 00000000..ed21ac78
--- /dev/null
+++ b/framework/qml/GridView.qml
@@ -0,0 +1,33 @@
1/*
2 * Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsystems.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19import QtQuick 2.7
20import QtQuick.Controls 2
21import org.kube.framework 1.0 as Kube
22
23GridView {
24 id: root
25 Component.onCompleted: currentIndex = -1
26 keyNavigationEnabled: true
27 Kube.ScrollHelper {
28 id: scrollHelper
29 flickable: root
30 anchors.fill: root
31 }
32}
33