1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 11:32:42 +01:00
ScreenPlay/qml/Components/ScreenPlayItem.qml
2017-04-03 19:58:47 +02:00

44 lines
737 B
QML

import QtQuick 2.0
Item {
id:screenPlayItem
width: 320
height: 180
property string customTitle: "name here"
signal itemClicked(var screenName)
Rectangle
{
id: rectangle
color: "white"
radius: 23
anchors {
fill: parent
margins:5
}
Text {
id: text1
text: customTitle
renderType: Text.QtRendering
wrapMode: Text.WrapAnywhere
anchors.fill: parent
font.pixelSize: 18
anchors.margins: 10
}
MouseArea {
anchors.fill: parent
onClicked: {
itemClicked(customTitle)
}
}
}
}