Add a Linger NumberField to the menu
Native qs.Ui.NumberField (SpinBox) for lingerMs: mouse wheel, +/- buttons and typing, 0-10000ms in 500ms steps, writing config.json like Mode and Position so the display updates live. 0 selects the always-show behavior from the previous commit.
This commit is contained in:
@@ -219,6 +219,19 @@ Panel {
|
||||
]
|
||||
onChanged: function(v) { root.writeConfig({ position: v }) }
|
||||
}
|
||||
|
||||
// Linger --------------------------------------------------------
|
||||
NumberField {
|
||||
id: lingerField
|
||||
width: parent.width
|
||||
label: "Linger"
|
||||
value: root.lingerMs
|
||||
from: 0
|
||||
to: 10000
|
||||
stepSize: 500
|
||||
// 0 = always show (keep the last combo until the next key).
|
||||
onModified: function(v) { root.writeConfig({ lingerMs: v }) }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user