MCPcopy Create free account
hub / github.com/ccMSC/ckb / pickColor

Method pickColor

src/ckb/colorbutton.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected