You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[forms] Copy and paste widget configuration when designing forms
PR Description:
When designing forms (e.g., using the Drag and Drop Designer) in layers with multiple fields, chances are we want to set similar or even the same configurations for some of them that are somehow related (e.g., configuring latitude and longitude field widgets). This process is currently manual, which ends up being a bit tedious and error prone.
This PR adds a handy context menu (in the Vector properties dialog, Attributes Form tab, Available Widgets tree, Fields category, :) ), allowing users to copy widget configurations between fields, and thus, saving time and making sure we'll not miss any particular setting by mistake.
Implementation details:
Copy&paste of widget configuration can be done between fields of the same layer, between fields from different layers in the QGIS project, or between fields from layers in different QGIS instances.
Pasted widget configuration overwrites the target one, but is not applied automatically, so that users can see the pasted configuration and possibly tune it and apply it or avoid saving it by cancelling the dialog or just selecting another field.
We avoid copying aliases and comments. The target field ones are respected.
A widget configuration can be copied and pasted on the very same field, thus adding support for keeping a widget config in the clipboard, making and testing changes and eventually reverting them by pasting the clipboard content in the same field.
We only paste "editor widget configs" when the target field supports the source editor widget type. Otherwise, we leave the target editor widget type and config intact, while showing a warning message (in dialog's message bar) explaining why the config could not be pasted.
Target provider constraints are kept, we only paste constraints with layer origin.
Fix #58971
Funded by Ville de Pully (Switzerland)
Commits tagged with [need-docs] or [FEATURE]
The text was updated successfully, but these errors were encountered:
Request for documentation
From pull request qgis/QGIS#60091
Author: @gacarrillor
QGIS version: 3.42
[forms] Copy and paste widget configuration when designing forms
PR Description:
When designing forms (e.g., using the
Drag and Drop Designer
) in layers with multiple fields, chances are we want to set similar or even the same configurations for some of them that are somehow related (e.g., configuring latitude and longitude field widgets). This process is currently manual, which ends up being a bit tedious and error prone.This PR adds a handy context menu (in the
Vector properties
dialog,Attributes Form
tab,Available Widgets
tree,Fields
category, :) ), allowing users to copy widget configurations between fields, and thus, saving time and making sure we'll not miss any particular setting by mistake.Implementation details:
Fix #58971
Funded by Ville de Pully (Switzerland)
Commits tagged with [need-docs] or [FEATURE]
The text was updated successfully, but these errors were encountered: