import QtQuick 2.11

Item {
    id:root
    anchors.fill: parent
    anchors.margins: 10
    property int resultHeight: 25

    property string  titlestr

    property string  systemPressure_delta
    property string  systemPressure_fontcolor:"#272727"
    property string  systemPressure_pass:"未知"

    property string  valvePressure_delta
    property string  valvePressure_fontcolor:"#272727"
    property string  valvePressure_pass:"未知"

    Column{
        anchors.centerIn: parent
        ResultDisplayText{
            width: root.width
            height: root.resultHeight
            color: "white"
            paraName: titlestr+"结果："
            paraResult:""
            paraUnit:""
        }

        Row{

            ResultDisplayText{
                width: root.width*3/4
                height: root.resultHeight
                color: "#D2D5D9"
                paraName: "系统密闭性："
                paraResult:systemPressure_delta
                paraResult_fontColor: systemPressure_fontcolor
                paraUnit:"kPa"
            }

            ResultDisplayText{
                width: root.width/4
                height: root.resultHeight
                color: "#D2D5D9"
                paraName: "  "
                paraResult:systemPressure_pass
                paraResult_fontColor: systemPressure_fontcolor
                paraUnit:""
            }
        }

        Row{

            ResultDisplayText{
                width: root.width*3/4
                height: root.resultHeight
                color: "#DFE2E6"
                paraName: "阀门密闭性："
                paraResult:valvePressure_delta
                paraResult_fontColor:valvePressure_fontcolor
                paraUnit:"kPa"
            }

            ResultDisplayText{
                width: root.width/4
                height: root.resultHeight
                color: "#DFE2E6"
                paraName: "  "
                paraResult:valvePressure_pass
                paraResult_fontColor:valvePressure_fontcolor
                paraUnit:""
            }
        }

 /*
        ResultDisplayText{
            width: root.width
            height: root.resultHeight
            color: "white"
            paraName: ""
            paraResult:""
            paraUnit:""
        }


        ResultDisplayText{
            width: root.width
            height: root.resultHeight
            color: "white"
            paraName: "负压测试"
            paraResult:""
            paraUnit:""
        }
        ResultDisplayText{
            width: root.width
            height: root.resultHeight
            color: "#DFE2E6"
            paraName: "系统密封性："
            paraResult:negativeSysPressure
            paraUnit:"kPa"
        }
        ResultDisplayText{
            width: root.width
            height: root.resultHeight
            color: "#D2D5D9"
            paraName: "阀门密封性："
            paraResult:negativeValvePressure
            paraUnit:"kPa"
        }
*/

    }

}
