'Sets the button\'s color and emits both sigColorChanged and sigColorChanging.'

def setColor(self, color, finished=True):

    self._color = functions.mkColor(color)
    if finished:
        self.sigColorChanged.emit(self)
    else:
        self.sigColorChanging.emit(self)
    self.update()
