Warning, /system/apper/plasmoid/package/contents/ui/ScrollableListView.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright 2012 Daniel Nicoletti <dantti12@gmail.com> 0003 * 0004 * This program is free software; you can redistribute it and/or modify 0005 * it under the terms of the GNU Library General Public License as 0006 * published by the Free Software Foundation; either version 2 or 0007 * (at your option) any later version. 0008 * 0009 * This program is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0012 * GNU General Public License for more details 0013 * 0014 * You should have received a copy of the GNU Library General Public 0015 * License along with this program; if not, write to the 0016 * Free Software Foundation, Inc., 0017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0018 */ 0019 0020 import QtQuick 1.1 0021 import org.kde.plasma.core 0.1 as PlasmaCore 0022 import org.kde.plasma.components 0.1 as PlasmaComponents 0023 import org.kde.qtextracomponents 0.1 0024 0025 FocusScope { 0026 property alias delegate: list.delegate 0027 property alias model: list.model 0028 property alias interactive: list.interactive 0029 property alias currentIndex: list.currentIndex 0030 property alias view: list 0031 signal countChanged() 0032 0033 Component.onCompleted: { 0034 list.countChanged.connect(countChanged) 0035 } 0036 0037 ListView { 0038 id: list 0039 clip: true 0040 spacing: 0 0041 focus: true 0042 anchors { 0043 left: parent.left 0044 right: /*scrollBar.visible ? scrollBar.left :*/ parent.right 0045 top : parent.top 0046 bottom: parent.bottom 0047 } 0048 boundsBehavior: Flickable.StopAtBounds 0049 // snapMode: ListView.SnapOneItem 0050 } 0051 // PlasmaComponents.ScrollBar { 0052 // id: scrollBar 0053 // flickableItem: list 0054 // anchors { 0055 // right: parent.right 0056 // top: parent.top 0057 // bottom: parent.bottom 0058 // } 0059 // } 0060 }