moment/src/qml/Pages/EditAccount/ImportingKeys.qml

57 lines
1.3 KiB
QML
Raw Normal View History

2019-08-28 17:54:53 +10:00
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import "../../Base"
import "../../utils.js" as Utils
HColumnLayout {
2019-08-29 03:50:29 +10:00
readonly property int progress: accountInfo.importing_key
onProgressChanged: iconAnimation.restart()
2019-08-28 17:54:53 +10:00
HRowLayout {
2019-08-29 03:50:29 +10:00
HIcon {
id: icon
svgName: "import-keys"
Layout.margins: currentSpacing
SequentialAnimation {
id: iconAnimation
HNumberAnimation { target: icon; property: "opacity"; to: 0.6 }
HNumberAnimation { target: icon; property: "opacity"; to: 1 }
}
}
2019-08-28 17:54:53 +10:00
HLabel {
text: qsTr("Importing decryption keys...")
elide: Text.ElideRight
Layout.fillWidth: true
Layout.margins: currentSpacing
2019-08-29 03:50:29 +10:00
Layout.leftMargin: 0
Layout.rightMargin: 0
2019-08-28 17:54:53 +10:00
}
HLabel {
text: qsTr("%1/%2")
.arg(Math.ceil(progressBar.value)).arg(progressBar.to)
Layout.margins: currentSpacing
}
}
ProgressBar {
id: progressBar
from: 0
2019-08-29 03:50:29 +10:00
value: progress
2019-08-28 17:54:53 +10:00
to: accountInfo.total_keys_to_import
Behavior on value { HNumberAnimation { factor: 5 } }
Layout.fillWidth: true
}
}