(self, event)
| 128 | self.toggled.emit() |
| 129 | |
| 130 | def changeEvent(self, event): |
| 131 | if event.type() == QEvent.EnabledChange: |
| 132 | if self.isEnabled(): |
| 133 | self.saturate("onColor") |
| 134 | self.saturate("offColor") |
| 135 | self.saturate("handleColor") |
| 136 | self.opacity.setOpacity(1.00) |
| 137 | else: |
| 138 | self.desaturate("onColor") |
| 139 | self.desaturate("offColor") |
| 140 | self.desaturate("handleColor") |
| 141 | self.opacity.setOpacity(0.4) |
| 142 | |
| 143 | self.update() |
| 144 | |
| 145 | else: |
| 146 | super().changeEvent(event) |
| 147 | |
| 148 | def paintEvent(self, event): |
| 149 | pt = QPainter() |
nothing calls this directly
no test coverage detected