import QtQuick 2.12
import BTPhone 1.0

Item {
    id: root
    width: Constants.width * 0.3
    height: menuList.contentHeight

    ListView {
        id: menuList
        width: contentWidth
        height: contentHeight
        delegate: MenuListDelegate {
            id: menuListDelegate
            onMenuItemCheckCheckedChanged: if (menuItemCheckChecked)
                                               menuList.model = bT_RCNTMenuListPrivacyModel
                                           else
                                               menuList.model = bT_RCNTMenuListModel
        }
        model: bT_RCNTMenuListModel
    }

    BT_RCNTMenuListModel {
        id: bT_RCNTMenuListModel
    }

    BT_RCNTMenuListPrivacyModel {
        id: bT_RCNTMenuListPrivacyModel
    }
}
