7ef605ee5c
also improve warning box styling consistency across finalizers, add CPFP new feerate > old feerate check, add relayfee checks for CPFP, DSCancel, proper warning string for no dynamic fee estimates
28 lines
665 B
QML
28 lines
665 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
import org.electrum 1.0
|
|
|
|
ElComboBox {
|
|
id: control
|
|
|
|
required property QtObject feeslider
|
|
|
|
textRole: 'text'
|
|
valueRole: 'value'
|
|
|
|
model: [
|
|
{ text: qsTr('ETA'), value: FeeSlider.FSMethod.ETA },
|
|
{ text: qsTr('Mempool'), value: FeeSlider.FSMethod.MEMPOOL },
|
|
{ text: qsTr('Feerate'), value: FeeSlider.FSMethod.FEERATE },
|
|
{ text: qsTr('Manual'), value: FeeSlider.FSMethod.MANUAL }
|
|
]
|
|
onCurrentValueChanged: {
|
|
if (activeFocus)
|
|
feeslider.method = currentValue
|
|
}
|
|
Component.onCompleted: {
|
|
currentIndex = indexOfValue(feeslider.method)
|
|
}
|
|
}
|