Esempio n. 1
0
void CanvasContextAttributes::setAlpha(bool value)
{
    if (m_alpha == value)
        return;

    m_alpha = value;
    emit alphaChanged(value);
}
Esempio n. 2
0
void FillSpec::setAlpha(qreal arg)
{
    // Clamp the value before testing...
    if (arg > 1) arg = 1;
    else if (arg < 0) arg = 0;
    if (m_alpha == arg) return;
    m_alpha = arg;
    emit alphaChanged(arg);
}
Esempio n. 3
0
void ColorBox::setAlpha(int newAlpha)
{
    if (m_color.alpha() == newAlpha)
        return;

    m_color.setAlpha(newAlpha);
    update();
    emit alphaChanged();
    emit colorChanged();
}
Esempio n. 4
0
void ColorBox::setColor(const QColor &color)
{
    if (m_color == color)
        return;

    int oldsaturation = m_color.hsvSaturation();
    int oldvalue = m_color.value();
    int oldhue = m_color.hsvHue();
    int oldAlpha = m_color.alpha();
    m_color=color;
    update();
    if (oldhue != m_color.hsvHue()) emit hueChanged();
    if (oldsaturation != saturation()) emit saturationChanged();
    if (oldvalue != value()) emit valueChanged();
    if (oldAlpha != alpha()) emit alphaChanged();
}
void NoiseReductionWidget::alphaChanged(int value)
{
	alphaChanged ( (double)value / ( FLOAT_SLIDER_RES / GREYC_ALPHA_RANGE ) );
}
Esempio n. 6
0
//---------------------------------------------------------
// alphaChanged
//---------------------------------------------------------
void NoteInfo::alphaChanged(int alpha)
{
	tconfig().set_property("PianorollEdit", "renderalpha", alpha);
	tconfig().save();
	emit alphaChanged();
}
Esempio n. 7
0
	void PlotItem::SetAlpha (double a)
	{
		Alpha_ = a;
		emit alphaChanged ();
	}