MerginMaps / MerginMaps/mobile
Press and hold functionality on +/- signs for range editable editor
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 388
- Forks
- 87
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 20
Description
Currently +/- signs on range editable widgets are not allowing press and hold behavior, meaning that they will alter the value only once, not multiple times while you hold them down. This is not implemented in QML apart from SpinBox which we are not using.
We can however implement it the same way they did, see:
https://github.com/mburakov/qt5/blob/93bfa3874c10f6cb5aa376f24363513ba8264117/qtquickcontrols/src/controls/SpinBox.qml#L306-L309
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the range editable widgets and their +/- controls in the mobile app, then compare the referenced qtquickcontrols/src/controls/SpinBox.qml implementation, especially lines 306-309. Done means holding either sign repeatedly changes the value rather than applying only one change; add or update a relevant test if the widget has coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100