import Qt 4.7 /** * This works as the display logic for a single * item and gets it data from the model. */ Component { Item { id: itemContainer width: itemContainer.ListView.view.width height: status.height + time.height + 10 function removeVH(text) { return text.replace(/vihreahaltiatar\: /gi, ""); } Item { width: parent.width - 10 /*anchors.centerIn: parent*/ Text { id: status width: parent.width text: itemContainer.removeVH(statusText) font.bold: true wrapMode: Text.WordWrap clip: true } Text { id: time anchors.top: status.bottom text: timestamp } } } }