/*!
 *
 * Copyright (c) 2019-2025 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    RxManagerHeader.qml
 * \author  (original)  Tiffnay Mejia
 * \date    (original)  10-Oct-2025
 *
 */

// Qt
import QtQuick 2.12

// Project
//  Qml imports
import "qrc:/globals"
import "qrc:/components"
import "qrc:/pages/rxmanager"

Item{
    id: _root
    signal loadRxProfile()
    property alias model: _listView.model
    property bool onShow: true

    height: parent.height - (Variables.mainMenuHeight + Variables.alarmDialogHeaderHeight)
    ListView{
        anchors.fill: _root
        clip: true
        spacing: Variables.defaultMargin
        id: _listView
        delegate: Component {
            RxProfileContainer {  id: _rxProfileContainer
                onShow: _root.onShow
                onLoadRxProfile: {
                    _root.loadRxProfile()
                    }
                }
        }

    }
}
