Hi,
I'm trying to change the default behavior of Camelot so that I can
copy the text on 'not editable' text lines. By default, Qt does not
allow disabled fields to have its text selected/copied, but it allows
ReadOnly fields.
With this change, I can copy the text:
--- a/camelot/view/controls/editors/textlineeditor.py Thu Nov 19 15:55:43 2015 -0200
+++ b/camelot/view/controls/editors/textlineeditor.py Thu Feb 25 16:12:21 2016 -0300
@@ -101,7 +101,7 @@
if text_input is not None:
editable = kwargs.get('editable', False)
value = text_input.text()
- text_input.setEnabled(editable)
+ text_input.setReadOnly(not editable)
text_input.setText(value)
text_input.setToolTip(six.text_type(kwargs.get('tooltip') or ''))
set_background_color_palette(text_input,
that are related to another table.