Warning, /pim/kube/framework/qml/FolderListView.qml is written in an unsupported language. File is not indexed.

0001 /*
0002   Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net>
0003   Copyright (C) 2017 Christian Mollekopf, <mollekopf@kolabsystems.com>
0004 
0005   This program is free software; you can redistribute it and/or modify
0006   it under the terms of the GNU General Public License as published by
0007   the Free Software Foundation; either version 2 of the License, or
0008   (at your option) any later version.
0009 
0010   This program is distributed in the hope that it will be useful,
0011   but WITHOUT ANY WARRANTY; without even the implied warranty of
0012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0013   GNU General Public License for more details.
0014 
0015   You should have received a copy of the GNU General Public License along
0016   with this program; if not, write to the Free Software Foundation, Inc.,
0017   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0018 */
0019 
0020 import QtQuick 2.4
0021 
0022 import org.kube.framework 1.0 as Kube
0023 
0024 Kube.TreeView {
0025     id: root
0026     property variant accountId
0027 
0028     Kube.Listener {
0029         filter: Kube.Messages.selectNextFolder
0030         onMessageReceived: root.selectNext()
0031     }
0032 
0033     Kube.Listener {
0034         filter: Kube.Messages.selectPreviousFolder
0035         onMessageReceived: root.selectPrevious()
0036     }
0037 
0038     model: Kube.FolderListModel {
0039         id: folderListModel
0040         accountId: root.accountId
0041         onInitialItemsLoaded: {
0042             root.selectRootIndex()
0043         }
0044     }
0045 }