Warning, /plasma/plasma-activities-stats/tests/model/main.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.0
0002 Rectangle {
0003     color: "black"
0004     ListView {
0005         anchors.fill: parent
0006         anchors.margins: 8
0007 
0008         model: kamdmodel
0009 
0010         delegate: Item {
0011             height: 100-32
0012             width: 500
0013 
0014             Text {
0015                 text: model.index
0016                 color: '#ffffff'
0017 
0018                 width: 24
0019 
0020                 anchors {
0021                     left: parent.left
0022                     top: parent.top
0023                     bottom: parent.bottom
0024                 }
0025             }
0026 
0027             Rectangle {
0028                 id: titleRect
0029                 height: 32
0030 
0031                 color: '#202020'
0032                 anchors {
0033                     left: parent.left
0034                     leftMargin: 24
0035                     right: parent.right
0036                     top: parent.top
0037                 }
0038 
0039                 Text {
0040                     text: model.title
0041                     anchors {
0042                         fill: parent
0043                         margins: 6
0044                     }
0045                     color: 'white'
0046                 }
0047 
0048                 Text {
0049                     text: "Score: " + model.score
0050                     anchors {
0051                         fill: parent
0052                         margins: 6
0053                     }
0054                     color: 'white'
0055                     horizontalAlignment: Text.AlignRight
0056                 }
0057             }
0058 
0059             Rectangle {
0060                 anchors {
0061                     left: parent.left
0062                     leftMargin: 24
0063                     right: parent.right
0064                     top: titleRect.bottom
0065                 }
0066 
0067                 color: '#303030'
0068                 height: 32
0069 
0070                 Text {
0071                     anchors {
0072                         fill: parent
0073                         margins: 6
0074                     }
0075                     color: 'white'
0076                     text: model.modified + "\t" + model.created + "\t" + model.resource
0077                 }
0078 
0079             }
0080         }
0081 
0082         add: Transition {
0083             NumberAnimation { properties: "x,y"; from: 100; duration: 1000 }
0084         }
0085         addDisplaced: Transition {
0086             NumberAnimation { properties: "x,y"; duration: 1000 }
0087         }
0088         displaced: Transition {
0089             NumberAnimation { properties: "x,y"; duration: 1000 }
0090         }
0091         move: Transition {
0092             NumberAnimation { properties: "x,y"; duration: 1000 }
0093         }
0094         moveDisplaced: Transition {
0095             NumberAnimation { properties: "x,y"; duration: 1000 }
0096         }
0097         // populate: Transition {
0098         //     NumberAnimation { properties: "x,y"; duration: 1000 }
0099         // }
0100         removeDisplaced: Transition {
0101             NumberAnimation { properties: "x,y"; duration: 1000 }
0102         }
0103         remove: Transition {
0104             ParallelAnimation {
0105                 NumberAnimation { property: "opacity"; to: 0; duration: 1000 }
0106                 NumberAnimation { properties: "x,y"; to: 100; duration: 1000 }
0107             }
0108         }
0109     }
0110 }