MCPcopy Create free account
hub / github.com/KDE/kdiff3 / postRecalcWordWrap

Method postRecalcWordWrap

src/pdiff.cpp:1216–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214}
1215
1216void KDiff3App::postRecalcWordWrap()
1217{
1218 if(!m_bRecalcWordWrapPosted)
1219 {
1220 while(DiffTextWindow::maxThreads() > 0) {} //Clear wordwrap threads.
1221 m_bRecalcWordWrapPosted = true;
1222 m_firstD3LIdx = -1;
1223 Q_EMIT sigRecalcWordWrap();
1224 }
1225 else
1226 {
1227 /*
1228 Clear exiting wordwrap threads and prevent recal signals from completing.
1229 This honors the intent of the old cancel call without the risk of aborting file I/O.
1230 */
1231 QSignalBlocker blocker(m_pDiffTextWindow1), blocker2(m_pDiffTextWindow2), blocker3(m_pDiffTextWindow3), blocker4(m_pMergeResultWindow);
1232 while(DiffTextWindow::maxThreads() > 0) {} //Clear wordwrap threads.
1233 }
1234}
1235
1236void KDiff3App::slotRecalcWordWrap()
1237{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected