diff options
Diffstat (limited to 'weather-qml/HungItem.qml')
-rw-r--r-- | weather-qml/HungItem.qml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/weather-qml/HungItem.qml b/weather-qml/HungItem.qml new file mode 100644 index 0000000..cf14c09 --- /dev/null +++ b/weather-qml/HungItem.qml @@ -0,0 +1,28 @@ +import Qt 4.6 + +Item { + id: root + + property real itemX + property real itemY + property real finalY + property string lineImage + property string itemImage + + width: item.width + height: itemY + item.height + + Image { + id: line + source: root.lineImage + anchors.horizontalCenter: root.horizontalCenter + } + + Image { + id: item + x: root.itemX + y: root.itemY + source: root.itemImage + anchors.bottom: parent.bottom + } +} |