2023-07-17 10:49:06 +02:00
|
|
|
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: [
|
2025-02-24 12:20:44 +01:00
|
|
|
{ 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)
|
|
|
|
|
}
|
|
|
|
|
}
|