1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2024-10-06 19:10:51 +01:00
cool-retro-term/qml/cool-old-term/TerminalLine.qml
2013-11-22 14:17:24 +01:00

35 lines
737 B
QML

import QtQuick 2.0
import org.yat 1.0
ObjectDestructItem {
id: textLine
property var textComponent : Qt.createComponent("TerminalText.qml")
property font font
property real fontHeight
property real fontWidth
height: fontHeight
width: parent.width
visible: objectHandle.visible
Connections {
target: objectHandle
onIndexChanged: {
y = objectHandle.index * fontHeight;
}
onTextCreated: {
var textSegment = textComponent.createObject(textLine,
{
"objectHandle" : text,
"font" : textLine.font,
"fontWidth" : textLine.fontWidth,
})
}
}
}