Bug report #11413
Text Edit Widget no longer appear inactive in feature forms when layer or field is not editable
Status: | Closed | ||
---|---|---|---|
Priority: | Severe/Regression | ||
Assignee: | - | ||
Category: | Edit widget | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Windows | Easy fix?: | No |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 19691 |
Description
In master (fbc5f06) text edit field widgets no longer appear inactive in the feature forms when the layer is not in editable mode or when the editable check box is turned off in the fields properties.
The values are still not possible to edit, but the text edit is not grayed.
This worked well in 2.4, and all other widgets seems to work as expected in master. That is, if the fields are not editable then the widgets are grayed.
Associated revisions
[editwidgets] text color for r/o line edits matches disabled color
Line edits are set to readonly to make it possible to copy values from disabled
forms. Unfortunately Qt uses a style that makes them look editable even though
they are not. This patches the text color to have the appearance that hints an
uneditable widget.
Fix #11413
History
#1 Updated by Matthias Kuhn about 10 years ago
- Status changed from Open to Closed
Fixed in changeset 3d9ba705de9887d46f3bb35a148b0b5b0b7a8999.