Commit d0ac241
committed
qtvcp -pushbutton: fix setting of group pin type
Enums are evil in Qt.
if the class enums variable use the same definition, it silently
breaks the setting of the pin type.
so PinType class can be:
NONE = 0
BIT = hal.Type.BOOL # Deprecated <<<<<
S32 = hal.HAL_S32
FLOAT = hal.Type.REAL # Deprecated <<<<
BOOL = hal.Type.BOOL
SINT = hal.Type.SINT
REAL = hal.Type.REAL
but class variables must be:
NONE = 0
BIT = hal.HAL_BIT # Deprecated <<<<
S32 = hal.HAL_S32
FLOAT = hal.HAL_FLOAT # Deprecated <<<<<
BOOL = hal.Type.BOOL
SINT = hal.Type.SINT
REAL = hal.Type.REAL
Don't know why.1 parent 8c7ef3a commit d0ac241
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments