Exemplo n.º 1
0
void KColorUtilsDemo::targetSpinChanged()
{
    if (_noUpdate)
        return;
    _noUpdate = true;

    updateSwatch(mtTarget, mtRed, mtGreen, mtBlue);
    mixChanged();

    _noUpdate = false;
}
Exemplo n.º 2
0
void KColorUtilsDemo::inputSpinChanged()
{
    if (_noUpdate)
        return;
    _noUpdate = true;

    updateSwatch(inColor, inRed, inGreen, inBlue);
    inputChanged();

    _noUpdate = false;
}
Exemplo n.º 3
0
void Palette::setColour(QColor colour) {
	setColour(colour.red(), colour.green(), colour.blue(), colour.alpha());
	updateSwatch(colour);
}