Esempio n. 1
0
void KisCompositeOpOption::changeCompositeOp(const KoID& compositeOp)
{
    if (compositeOp.id() == m_currCompositeOpID)
        return;

    m_currCompositeOpID = compositeOp.id();

    if (m_createConfigWidget) {
        m_label->setText(compositeOp.name());
    }

    emitSettingChanged();
}
void KisCompositeOpOption::changeCompositeOp(const KoID& compositeOp)
{
    if(compositeOp.id() == m_currCompositeOpID)
        return;
    
    m_prevCompositeOpID = m_currCompositeOpID;
    m_currCompositeOpID = compositeOp.id();
    
    if(m_createConfigWidget) {
        m_label->setText(compositeOp.name());
        m_bnEraser->blockSignals(true);
        m_bnEraser->setChecked(m_currCompositeOpID == "erase");
        m_bnEraser->blockSignals(false);
    }
    
    emit sigSettingChanged();
}
Esempio n. 3
0
const KisPainterlyOverlayColorSpace * KisPainterlyOverlayColorSpace::instance()
{
    if (!Private::s_instance) {
        Private::s_instance = new KisPainterlyOverlayColorSpace(painterlyOverlayColorModelID.id(), painterlyOverlayColorModelID.name());
    }
    return Private::s_instance;
}