Bug report #11413

Text Edit Widget no longer appear inactive in feature forms when layer or field is not editable

Added by Alexandre Neto almost 10 years ago. Updated almost 10 years ago.

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.

Text_edit_widget_in_not_editable_layer_2.4.PNG (6.38 KB) Alexandre Neto, 2014-10-15 06:46 AM

Text_edit_widget_in_not_editable_field_2.4.PNG (5.88 KB) Alexandre Neto, 2014-10-15 06:46 AM

Text_edit_widget_in_not_editable_layer_2.5.PNG (6.06 KB) Alexandre Neto, 2014-10-15 06:46 AM

Text_edit_widget_in_not_editable_field_2.5.PNG (6.17 KB) Alexandre Neto, 2014-10-15 06:46 AM

Associated revisions

Revision 3d9ba705
Added by Matthias Kuhn almost 10 years ago

[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 almost 10 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF