import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Controls.impl 2.14
import Qt.labs.settings 1.0


Row {
    Rectangle {
        width: 21
        height: 42
        color: activePalette.button
        Image {
            id: icon
            width: 18
            height: 36
            source: "file:png/pointSize.png"
            fillMode: Image.PreserveAspectFit
            clip: true
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.verticalCenter: parent.verticalCenter
        }
    }
    SingleSpinBox {
        id: singleSpinBox
        value: 1
        from: 1
        to: 10
        decimals: 0
        divisor: 1
        focusPolicy: Qt.NoFocus 
        onValueModified: {
            modelData.setLastAllDisplayFrames(realValue)
            focus = false
        }
        ToolTip {
            visible: parent.hovered
            delay: 500
            text: qsTr("Simultaneous Frames")
        }
        Component.onCompleted: {
            onValueModified()
        }
    }
    Settings {
        property alias mSimutaneousFramesValue: singleSpinBox.value
    }
}