MerginMaps / MerginMaps/mobile

Migrate 'reuse last value' to QGIS editFormConfig

Open
#1,616 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

  • #3788 by @VitorVieiraZ — closed without merging
enhancement
Dominant language
C++
Stars
388
Forks
87
Avg merge
2d 7h
Merged PRs (30d)
20

Description

QGIS 3.20 seems to add the reuse last value functionality to QgsEditFormConfig, we might want to use that instead of custom implementation.

    /**
     * If this returns TRUE, the widget at the given \a index will remember the previously
     * entered value from this QGIS session when creating new features.
     *
     * \see setReuseLastValue()
     * \since QGIS 3.20
     */
    bool reuseLastValue( int index ) const;

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

No file or test is named. Locate the current custom “reuse last value” implementation, then compare it with QGIS 3.20’s QgsEditFormConfig::reuseLastValue API; the closed linked pull request #3788 may provide prior context. Done means the custom behavior is migrated while existing edit-form behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
mobile-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.