MerginMaps / MerginMaps/mobile

Press and hold functionality on +/- signs for range editable editor

Open
#1,641 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement forms
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.