| 97 | } |
| 98 | |
| 99 | void PaletteView::selectColor(int index) |
| 100 | { |
| 101 | if (index < 0 || index >= currentPalette()->size()) |
| 102 | return; |
| 103 | |
| 104 | if (m_currentEntry != index || !m_selectedEntries[index]) { |
| 105 | m_currentEntry = index; |
| 106 | m_rangeAnchor = index; |
| 107 | |
| 108 | update_scroll(m_currentEntry); |
| 109 | invalidate(); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void PaletteView::selectExactMatchColor(const app::Color& color) |
| 114 | { |
no test coverage detected