Browse Source

qml: ConfirmTxDialog layout fixes

master
Sander van Grieken 3 years ago
parent
commit
02fd25141e
  1. 54
      electrum/gui/qml/components/ConfirmTxDialog.qml

54
electrum/gui/qml/components/ConfirmTxDialog.qml

@ -57,6 +57,8 @@ ElDialog {
Label { Label {
id: amountLabel id: amountLabel
Layout.fillWidth: true
Layout.minimumWidth: implicitWidth
text: qsTr('Amount to send') text: qsTr('Amount to send')
color: Material.accentColor color: Material.accentColor
} }
@ -135,31 +137,39 @@ ElDialog {
text: finalizer.target text: finalizer.target
} }
Slider { RowLayout {
id: feeslider Layout.columnSpan: 2
leftPadding: constants.paddingMedium Layout.fillWidth: true
snapMode: Slider.SnapOnRelease
stepSize: 1 Slider {
from: 0 id: feeslider
to: finalizer.sliderSteps Layout.fillWidth: true
onValueChanged: { leftPadding: constants.paddingMedium
if (activeFocus)
finalizer.sliderPos = value snapMode: Slider.SnapOnRelease
} stepSize: 1
Component.onCompleted: { from: 0
value = finalizer.sliderPos to: finalizer.sliderSteps
}
Connections { onValueChanged: {
target: finalizer if (activeFocus)
function onSliderPosChanged() { finalizer.sliderPos = value
feeslider.value = finalizer.sliderPos }
Component.onCompleted: {
value = finalizer.sliderPos
}
Connections {
target: finalizer
function onSliderPosChanged() {
feeslider.value = finalizer.sliderPos
}
} }
} }
}
FeeMethodComboBox { FeeMethodComboBox {
id: target id: target
feeslider: finalizer feeslider: finalizer
}
} }
InfoTextArea { InfoTextArea {

Loading…
Cancel
Save