Merge PR #758: Fix modbus baudrate selection
This commit is contained in:
commit
fe3443e1d5
@ -164,7 +164,7 @@ SettingsPageBase {
|
|||||||
ComboBox {
|
ComboBox {
|
||||||
id: baudRateComboBox
|
id: baudRateComboBox
|
||||||
Layout.minimumWidth: 250
|
Layout.minimumWidth: 250
|
||||||
textRole: "text"
|
textRole: "value"
|
||||||
enabled: !root.busy
|
enabled: !root.busy
|
||||||
onActivated: console.log("Selected baud rate", currentText, model.get(currentIndex).value)
|
onActivated: console.log("Selected baud rate", currentText, model.get(currentIndex).value)
|
||||||
model: serialPortBaudrateModel
|
model: serialPortBaudrateModel
|
||||||
|
|||||||
@ -179,7 +179,7 @@ SettingsPageBase {
|
|||||||
id: baudRateComboBox
|
id: baudRateComboBox
|
||||||
Layout.minimumWidth: 250
|
Layout.minimumWidth: 250
|
||||||
enabled: !root.busy
|
enabled: !root.busy
|
||||||
textRole: "text"
|
textRole: "value"
|
||||||
model: serialPortBaudrateModel
|
model: serialPortBaudrateModel
|
||||||
onActivated: console.log("Selected baudrate", currentText, model.get(currentIndex).value)
|
onActivated: console.log("Selected baudrate", currentText, model.get(currentIndex).value)
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|||||||
Reference in New Issue
Block a user