import QtQuick 1.0

Rectangle
{
    property int imgOffset: 4
    property string imgUrl;
    property int imagestatus: innerimage.status

    id: imageRect
    radius: imgOffset

   // width:innerimage.width
   // height:innerimage.height


    width:130//innerimage.sourceSize.width>innerimage.sourceSize.height? 150: (innerimage.sourceSize.width*150/innerimage.sourceSize.height)
    height:130//innerimage.sourceSize.width>innerimage.sourceSize.height?  (innerimage.sourceSize.height*150/innerimage.sourceSize.width):150

    color: "#c6d9e8"
    border.width:4
    border.color:"white"

    Image
    {



        id: innerimage
        smooth:true;
        anchors.fill: parent
        fillMode:Image.PreserveAspectFit
        anchors.margins: imgOffset

        source: imgUrl
    }
}
