Files
pallectrum/electrum/gui/qml/components/controls/FeeMethodComboBox.qml

27 lines
597 B
QML
Raw Normal View History

import QtQuick
import QtQuick.Controls
2022-10-25 15:13:57 +02:00
import org.electrum 1.0
2023-11-14 14:36:54 +01:00
ElComboBox {
2022-10-25 15:13:57 +02:00
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 }
2022-10-25 15:13:57 +02:00
]
onCurrentValueChanged: {
if (activeFocus)
feeslider.method = currentValue
}
Component.onCompleted: {
currentIndex = indexOfValue(feeslider.method)
}
}