Warning, /network/kdeconnect-kde/plugins/presenter/test.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.10
0002 import QtQuick.Layouts 1.10
0003 
0004 Item
0005 {
0006     width: 500
0007     height: 500
0008 
0009     MouseArea {
0010         id: mouse
0011         anchors.fill: parent
0012         hoverEnabled: true
0013     }
0014 
0015     RowLayout {
0016         id: layout
0017         anchors.fill: parent
0018         spacing: 0
0019         Repeater {
0020             id: rep
0021             model: [ "white", "yellow", "red", "blue", "gray", "black" ]
0022             delegate: Rectangle {
0023                 Layout.fillWidth: true
0024                 Layout.fillHeight: true
0025                 color: modelData
0026             }
0027         }
0028     }
0029 
0030     Presenter {
0031         anchors.fill: parent
0032 
0033         xPos: mouse.mouseX/width
0034         yPos: mouse.mouseY/height
0035     }
0036 }