606 d_ptr->m_ui->valueColorLine->setColorComponent(QtColorLine::Value); |
606 d_ptr->m_ui->valueColorLine->setColorComponent(QtColorLine::Value); |
607 d_ptr->m_ui->alphaColorLine->setColorComponent(QtColorLine::Alpha); |
607 d_ptr->m_ui->alphaColorLine->setColorComponent(QtColorLine::Alpha); |
608 |
608 |
609 d_ptr->m_model = new QtGradientStopsModel(this); |
609 d_ptr->m_model = new QtGradientStopsModel(this); |
610 d_ptr->m_ui->gradientStopsWidget->setGradientStopsModel(d_ptr->m_model); |
610 d_ptr->m_ui->gradientStopsWidget->setGradientStopsModel(d_ptr->m_model); |
611 connect(d_ptr->m_model, SIGNAL(currentStopChanged(QtGradientStop *)), |
611 connect(d_ptr->m_model, SIGNAL(currentStopChanged(QtGradientStop*)), |
612 this, SLOT(slotCurrentStopChanged(QtGradientStop *))); |
612 this, SLOT(slotCurrentStopChanged(QtGradientStop*))); |
613 connect(d_ptr->m_model, SIGNAL(stopMoved(QtGradientStop *, qreal)), |
613 connect(d_ptr->m_model, SIGNAL(stopMoved(QtGradientStop*,qreal)), |
614 this, SLOT(slotStopMoved(QtGradientStop *, qreal))); |
614 this, SLOT(slotStopMoved(QtGradientStop*,qreal))); |
615 connect(d_ptr->m_model, SIGNAL(stopsSwapped(QtGradientStop *, QtGradientStop *)), |
615 connect(d_ptr->m_model, SIGNAL(stopsSwapped(QtGradientStop*,QtGradientStop*)), |
616 this, SLOT(slotStopsSwapped(QtGradientStop *, QtGradientStop *))); |
616 this, SLOT(slotStopsSwapped(QtGradientStop*,QtGradientStop*))); |
617 connect(d_ptr->m_model, SIGNAL(stopChanged(QtGradientStop *, const QColor &)), |
617 connect(d_ptr->m_model, SIGNAL(stopChanged(QtGradientStop*,QColor)), |
618 this, SLOT(slotStopChanged(QtGradientStop *, const QColor &))); |
618 this, SLOT(slotStopChanged(QtGradientStop*,QColor))); |
619 connect(d_ptr->m_model, SIGNAL(stopSelected(QtGradientStop *, bool)), |
619 connect(d_ptr->m_model, SIGNAL(stopSelected(QtGradientStop*,bool)), |
620 this, SLOT(slotStopSelected(QtGradientStop *, bool))); |
620 this, SLOT(slotStopSelected(QtGradientStop*,bool))); |
621 connect(d_ptr->m_model, SIGNAL(stopAdded(QtGradientStop *)), |
621 connect(d_ptr->m_model, SIGNAL(stopAdded(QtGradientStop*)), |
622 this, SLOT(slotStopAdded(QtGradientStop *))); |
622 this, SLOT(slotStopAdded(QtGradientStop*))); |
623 connect(d_ptr->m_model, SIGNAL(stopRemoved(QtGradientStop *)), |
623 connect(d_ptr->m_model, SIGNAL(stopRemoved(QtGradientStop*)), |
624 this, SLOT(slotStopRemoved(QtGradientStop *))); |
624 this, SLOT(slotStopRemoved(QtGradientStop*))); |
625 |
625 |
626 connect(d_ptr->m_ui->hueColorLine, SIGNAL(colorChanged(const QColor &)), |
626 connect(d_ptr->m_ui->hueColorLine, SIGNAL(colorChanged(QColor)), |
627 this, SLOT(slotChangeHue(const QColor &))); |
627 this, SLOT(slotChangeHue(QColor))); |
628 connect(d_ptr->m_ui->saturationColorLine, SIGNAL(colorChanged(const QColor &)), |
628 connect(d_ptr->m_ui->saturationColorLine, SIGNAL(colorChanged(QColor)), |
629 this, SLOT(slotChangeSaturation(const QColor &))); |
629 this, SLOT(slotChangeSaturation(QColor))); |
630 connect(d_ptr->m_ui->valueColorLine, SIGNAL(colorChanged(const QColor &)), |
630 connect(d_ptr->m_ui->valueColorLine, SIGNAL(colorChanged(QColor)), |
631 this, SLOT(slotChangeValue(const QColor &))); |
631 this, SLOT(slotChangeValue(QColor))); |
632 connect(d_ptr->m_ui->alphaColorLine, SIGNAL(colorChanged(const QColor &)), |
632 connect(d_ptr->m_ui->alphaColorLine, SIGNAL(colorChanged(QColor)), |
633 this, SLOT(slotChangeAlpha(const QColor &))); |
633 this, SLOT(slotChangeAlpha(QColor))); |
634 connect(d_ptr->m_ui->colorButton, SIGNAL(colorChanged(const QColor &)), |
634 connect(d_ptr->m_ui->colorButton, SIGNAL(colorChanged(QColor)), |
635 this, SLOT(slotChangeColor(const QColor &))); |
635 this, SLOT(slotChangeColor(QColor))); |
636 |
636 |
637 connect(d_ptr->m_ui->hueSpinBox, SIGNAL(valueChanged(int)), |
637 connect(d_ptr->m_ui->hueSpinBox, SIGNAL(valueChanged(int)), |
638 this, SLOT(slotChangeHue(int))); |
638 this, SLOT(slotChangeHue(int))); |
639 connect(d_ptr->m_ui->saturationSpinBox, SIGNAL(valueChanged(int)), |
639 connect(d_ptr->m_ui->saturationSpinBox, SIGNAL(valueChanged(int)), |
640 this, SLOT(slotChangeSaturation(int))); |
640 this, SLOT(slotChangeSaturation(int))); |