| 58 | } |
| 59 | |
| 60 | void ColorButton::pickColor(){ |
| 61 | QColor newColor = QColorDialog::getColor(_color, this, QString(), QColorDialog::ColorDialogOptions(_alpha ? QColorDialog::ShowAlphaChannel : 0)); |
| 62 | if(newColor.isValid()){ |
| 63 | _color = newColor; |
| 64 | updateImage(); |
| 65 | emit colorChanged(_color); |
| 66 | } |
| 67 | } |
nothing calls this directly
no outgoing calls
no test coverage detected