Warning, /plasma/plasma-activities/tests/imports/activities.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2013 Heena Mahour <heena393@gmail.com> 0003 SPDX-FileCopyrightText: 2013 Sebastian Kügler <sebas@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 import QtQuick 2.0 0008 import org.kde.plasma.core as PlasmaCore 0009 import org.kde.plasma.components 2.0 as PlasmaComponents 0010 import org.kde.plasma.extras 2.0 as PlasmaExtras 0011 import org.kde.activities 0.1 as Activities 0012 0013 ListView { 0014 id: main 0015 0016 property int minimumWidth: 32 0017 property int minimumHeight: 32 // theme.mSize(theme.defaultFont).height * 14 0018 property int implicitWidth: minimumWidth * 1.5 0019 property int implicitHeight: minimumHeight * 1.5 0020 0021 property int formFactor: plasmoid.formFactor 0022 0023 0024 0025 model: modelMain 0026 0027 Activities.ActivityModel { 0028 id: modelMain 0029 } 0030 0031 add: Transition { 0032 NumberAnimation { properties: "x"; from: 300; duration: 1000 } 0033 } 0034 0035 addDisplaced: Transition { 0036 NumberAnimation { properties: "x,y"; duration: 1000 } 0037 } 0038 0039 remove: Transition { 0040 NumberAnimation { properties: "x"; to: 300; duration: 1000 } 0041 } 0042 0043 removeDisplaced: Transition { 0044 NumberAnimation { properties: "x,y"; duration: 1000 } 0045 } 0046 0047 ListModel { 0048 id: modelDummy 0049 0050 ListElement { 0051 name: "Bill Smith" 0052 number: "555 3264" 0053 } 0054 ListElement { 0055 name: "John Brown" 0056 number: "555 8426" 0057 } 0058 ListElement { 0059 name: "Sam Wise" 0060 number: "555 0473" 0061 } 0062 } 0063 0064 delegate: Column { 0065 height: 32 0066 Text { 0067 text: name 0068 height: 16 0069 font.bold: true 0070 } 0071 Text { 0072 text: " id: " + id 0073 height: 16 0074 } 0075 0076 } 0077 }