Changeset View
Changeset View
Standalone View
Standalone View
plugins/patchreview/patchreview.cpp
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Line(s) | |||||
218 | void PatchReviewPlugin::forceUpdate() { | 218 | void PatchReviewPlugin::forceUpdate() { | ||
219 | if( m_patch ) { | 219 | if( m_patch ) { | ||
220 | m_patch->update(); | 220 | m_patch->update(); | ||
221 | 221 | | |||
222 | notifyPatchChanged(); | 222 | notifyPatchChanged(); | ||
223 | } | 223 | } | ||
224 | } | 224 | } | ||
225 | 225 | | |||
226 | void PatchReviewPlugin::forceUpdateWithContext(int contextLines) { | ||||
227 | if( m_patch ) { | ||||
228 | // register the requested number of lines of context | ||||
229 | // and regenerate the patch. | ||||
230 | m_patch->setContextLines(contextLines); | ||||
231 | m_patch->update(); | ||||
232 | | ||||
233 | notifyPatchChanged(); | ||||
234 | } | ||||
235 | } | ||||
236 | | ||||
226 | void PatchReviewPlugin::updateKompareModel() { | 237 | void PatchReviewPlugin::updateKompareModel() { | ||
227 | if ( !m_patch ) { | 238 | if ( !m_patch ) { | ||
228 | ///TODO: this method should be cleaned up, it can be called by the timer and | 239 | ///TODO: this method should be cleaned up, it can be called by the timer and | ||
229 | /// e.g. https://bugs.kde.org/show_bug.cgi?id=267187 shows how it could | 240 | /// e.g. https://bugs.kde.org/show_bug.cgi?id=267187 shows how it could | ||
230 | /// lead to asserts before... | 241 | /// lead to asserts before... | ||
231 | return; | 242 | return; | ||
232 | } | 243 | } | ||
233 | 244 | | |||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |