- Timestamp:
- 02/02/12 04:18:37 (12 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py
r2021 r2029 127 127 if text == "Mute": 128 128 #log.debug("Mute %d" % self.mute_action.isChecked()) 129 self.update() 129 130 self.parent().mutes_interface.setValue(self.output, self.input, self.mute_action.isChecked()) 130 131 elif text == "Invert": 131 132 log.debug("Invert %d" % self.inv_action.isChecked()) 133 self.update() 132 134 self.parent().inverts_interface.setValue(self.output, self.input, self.inv_action.isChecked()) 133 135 else: … … 166 168 rect = self.rect() 167 169 v = self.value() 168 color = self.bgcolors.getColor(v) 170 if (self.mute_action!=None and self.mute_action.isChecked()): 171 color = QtGui.QColor(64, 64, 64) 172 else: 173 color = self.bgcolors.getColor(v) 169 174 p.fillRect(rect, color) 170 175 … … 184 189 text = "-ꝏ dB" 185 190 p.drawText(rect, Qt.Qt.AlignCenter, QtCore.QString.fromUtf8(text)) 191 if (self.inv_action!=None and self.inv_action.isChecked()): 192 p.drawText(rect, Qt.Qt.AlignLeft|Qt.Qt.AlignTop, QtCore.QString.fromUtf8(" ϕ")) 186 193 187 194 def internalValueChanged(self, value):