/*!
 *
 * Copyright (c) 2019-2020 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 ManagerHome.qml
 * \author (last) Behrouz NematiPour
 * \date (last) 22-Mar-2020
 * \author (original) Behrouz NematiPour
 * \date (original) 21-Oct-2019
 *
 */

// Qt
import QtQuick 2.12

// Project
import Gui.Actions 0.1;

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

Column { id: _root
    property var    model: []
    property string title: "Title"
    property int    fontPixelSizeTitle: 38
    property int    fontPixelSizeText : 38
    property string textObjectName: "_DebugDataColumn"

    width       : 150
    spacing     : -10

    Text { id: _title
        text    : _root.title
        width   : _root.width
        horizontalAlignment: Text.AlignRight
        color: Colors.textMain
        font.pixelSize: fontPixelSizeTitle
        font.underline: true
    }
    Repeater { id: _repeater
        model: _root.model
        Text {
            objectName: _root.textObjectName + index
            text: modelData
            width: _root.width
            horizontalAlignment: Text.AlignRight
            color: Colors.textMain
            font.pixelSize: fontPixelSizeText
        }
    }
}
