2018-02-06 20:50:49 -08:00
|
|
|
import QtQuick 2.4
|
2019-05-06 03:15:55 -07:00
|
|
|
import QtQuick.Layouts 1.11
|
2018-02-06 20:50:49 -08:00
|
|
|
|
|
|
|
Rectangle {
|
2019-05-06 03:15:55 -07:00
|
|
|
id: itm
|
2018-02-06 20:50:49 -08:00
|
|
|
height: 100
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.left: parent.left
|
2019-05-06 03:15:55 -07:00
|
|
|
property alias text: cellText.text
|
|
|
|
Rectangle {
|
|
|
|
id: half1
|
|
|
|
height: 100
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.minimumWidth: 100
|
|
|
|
Rectangle {
|
|
|
|
objectName: "cellRect"
|
|
|
|
property int index: 0
|
2018-02-06 20:50:49 -08:00
|
|
|
anchors.fill: parent
|
2019-05-06 03:15:55 -07:00
|
|
|
border.width: 2
|
|
|
|
border.color: "black"
|
|
|
|
Text {
|
|
|
|
id: cellText
|
|
|
|
enabled: true
|
|
|
|
objectName: "cellText"
|
|
|
|
// text: "itm.model.text"
|
|
|
|
renderType: Text.NativeRendering
|
|
|
|
clip: true
|
|
|
|
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 2
|
2018-02-06 20:50:49 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|