| 182 | } |
| 183 | |
| 184 | void PatchReviewPlugin::removeHighlighting( const QUrl& file ) { |
| 185 | if ( file.isEmpty() ) { |
| 186 | ///Remove all highlighting |
| 187 | qDeleteAll( m_highlighters ); |
| 188 | m_highlighters.clear(); |
| 189 | } else { |
| 190 | HighlightMap::iterator it = m_highlighters.find( file ); |
| 191 | if ( it != m_highlighters.end() ) { |
| 192 | delete *it; |
| 193 | m_highlighters.erase( it ); |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | void PatchReviewPlugin::notifyPatchChanged() { |
| 199 | if (m_patch) { |