2022-12-28 09:45:38 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
|
|
|
|
Item {
|
|
|
|
id: root
|
|
|
|
width: 800
|
|
|
|
height: 100
|
|
|
|
|
|
|
|
Column {
|
|
|
|
anchors.fill: parent
|
|
|
|
spacing: 30
|
|
|
|
|
|
|
|
Grid {
|
|
|
|
columns: 2
|
|
|
|
rowSpacing: 20
|
|
|
|
columnSpacing: 50
|
|
|
|
|
|
|
|
Text {
|
|
|
|
text: "Total steps:"
|
|
|
|
}
|
|
|
|
SpinBox {
|
|
|
|
id: totalSteps
|
|
|
|
editable: true
|
|
|
|
height: 30
|
|
|
|
from: 1
|
|
|
|
value: 6
|
|
|
|
}
|
|
|
|
|
|
|
|
Text {
|
|
|
|
text: "Completed steps:"
|
|
|
|
}
|
|
|
|
SpinBox {
|
|
|
|
id: completedSteps
|
|
|
|
editable: true
|
|
|
|
height: 30
|
|
|
|
from: 1
|
|
|
|
to: totalSteps.value
|
|
|
|
value: 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusStepper {
|
|
|
|
id: stepper
|
|
|
|
width: 400
|
2022-12-27 13:20:58 +00:00
|
|
|
title: "Account %1 of %2".arg(completedSteps).arg(totalSteps)
|
2022-12-28 09:45:38 +00:00
|
|
|
totalSteps: totalSteps.value
|
|
|
|
completedSteps: completedSteps.value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|