Commit 9572ecf
committed
BUG: stop designer from setting line-edits in ui file to be readOnly when PYDM_DESIGNER_ONLINE enabled
when editing a lineedit widget in designer after doing 'export PYDM_DESIGNER_ONLINE=1',
we want widgets to act as read-only so PVs are not accidentally changed
when modifying screens. this is enforced by the dataplugins themselves
and is_read_only() (set during designer setup: https://github.com/slaclab/pydm/blob/master/pydm/qtdesigner.py#L47)
but we don't want the readOnly=true status to be saved into the
ui file containing the lineedit.
to avoid this, don't let lineedit set itself to readOnly if it's
loaded in designer with live data enabled. (it will still act in a
read-only way thanks to dataplugins themselves)1 parent 5aaf9b9 commit 9572ecf
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
173 | 185 | | |
174 | 186 | | |
175 | 187 | | |
| |||
0 commit comments