-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[forms] Allow users to copy and paste form widget configurations from one field to another #46
base: master
Are you sure you want to change the base?
Conversation
@3nids, before showing this to the world, could you please have a look at this PR? Do we need
|
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Looking good! |
74fb263
to
90a575d
Compare
90a575d
to
ff5d38d
Compare
…y and paste configuration actions: copy form config to clipboard and paste form config from clipboard (partial)
…ted for copy&paste (i.e., Fields)
…a forceWidgetRefresh param and passing it as true when pasting; note we've respected the previous behavior (i.e., other calls still don't force a refresh) because it seems to be handy to switch between editor widget types (via GUI) without losing the config
… layout; since we only update GUI widgets (and don't automatically store pasted settings into tree item data nor in the field settings themselves), we've added handy methods to edit them
…traints can be both added and removed from the target field
…d by the target field, let users know (via message bar) why the config was not pasted
…lipboard and paste it in the very same field (could be useful as a undo operation after testing intermmediate changes)
61f1623
to
af10cd3
Compare
for more information, see https://pre-commit.ci
@3nids, do you know if we should add |
no only to the class |
When configuring 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 a number of them. 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 of not missing a particular setting by mistake.Implementation details:
Fix 58971
Funded by (?)