/*!
 *
 * Copyright (c) 2020-2026 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    ImageWave.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      16-Oct-2020
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  18-May-2020
 *
 */

// Qt
import QtQuick 2.12

// Project
//  Qml imports
import "qrc:/globals"

/*!
 * \brief   Encapsulated Wave image in a qml file
 */
Item { id : _root
    property bool isIncrease: true
    property real scale: 0.5

    width   : 136 * scale // constant image size
    height  :  90 * scale // constant image size
    clip    : false

    Image { id: _image
        anchors.fill: parent
        width : parent.width
        height: parent.height
        source: isIncrease
                ? "qrc:/images/iWave+"
                : "qrc:/images/iWave-"
    }
}
