examples/declarative/imageelements/image/ImageCell.qml
changeset 37 758a864f9613
parent 33 3e2da88830cd
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    46     width: parent.cellWidth; height: parent.cellHeight
    46     width: parent.cellWidth; height: parent.cellHeight
    47 
    47 
    48     Image {
    48     Image {
    49         id: image
    49         id: image
    50         width: parent.width; height: parent.height - captionItem.height
    50         width: parent.width; height: parent.height - captionItem.height
    51         source: "face-smile.png"
    51         source: "qt-logo.png"
    52         clip: true      // only makes a difference if mode is PreserveAspectCrop
    52         clip: true      // only makes a difference if mode is PreserveAspectCrop
    53         smooth: true
    53         smooth: true
    54     }
    54     }
    55 
    55 
    56     Text { 
    56     Text {