Remove old import dialog cruft

This commit is contained in:
miruka
2019-11-30 05:16:43 -04:00
parent 580f92e0be
commit a09e811e56
2 changed files with 1 additions and 62 deletions

View File

@@ -1,57 +0,0 @@
import QtQuick 2.12
import QtQuick.Layouts 1.12
import "../../Base"
HColumnLayout {
readonly property int progress: accountInfo.importing_key
onProgressChanged: iconAnimation.restart()
HRowLayout {
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 }
}
}
HLabel {
text: qsTr("Importing decryption keys...")
elide: Text.ElideRight
Layout.fillWidth: true
Layout.margins: currentSpacing
Layout.leftMargin: 0
Layout.rightMargin: 0
}
HLabel {
text: progressBar.indeterminate ?
qsTr("Preparing...") :
qsTr("%1/%2")
.arg(Math.ceil(progressBar.value)).arg(progressBar.to)
Layout.margins: currentSpacing
}
}
HProgressBar {
id: progressBar
from: 0
value: progress
to: accountInfo.total_keys_to_import
indeterminate: accountInfo.total_keys_to_import < 0
Behavior on value { HNumberAnimation { factor: 5 } }
Layout.fillWidth: true
}
}