| 59 | } |
| 60 | |
| 61 | void KisVisualColorModel::slotSetColor(const KoColor &c) |
| 62 | { |
| 63 | if (!m_d->allowUpdates) { |
| 64 | return; |
| 65 | } |
| 66 | |
| 67 | if (!m_d->currentCS) { |
| 68 | m_d->currentcolor = c; |
| 69 | slotSetColorSpace(c.colorSpace()); |
| 70 | } |
| 71 | else { |
| 72 | m_d->currentcolor = c.convertedTo(m_d->currentCS); |
| 73 | m_d->channelValues = convertKoColorToChannelValues(m_d->currentcolor); |
| 74 | emitChannelValues(); |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | void KisVisualColorModel::slotSetColorSpace(const KoColorSpace *cs) |
| 79 | { |
no test coverage detected