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

Method startRunnables

src/difftextwindow.cpp:1697–1721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695}
1696
1697bool DiffTextWindow::startRunnables()
1698{
1699 assert(RecalcWordWrapRunner::s_maxNofRunnables == 0);
1700
1701 if(s_runnables.size() == 0)
1702 {
1703 return false;
1704 }
1705 else
1706 {
1707 g_pProgressDialog->setStayHidden(true);
1708 ProgressProxy::startBackgroundTask();
1709 g_pProgressDialog->setMaxNofSteps(s_runnables.size());
1710 RecalcWordWrapRunner::s_maxNofRunnables = s_runnables.size();
1711 g_pProgressDialog->setCurrent(0);
1712
1713 for(size_t i = 0; i < s_runnables.size(); ++i)
1714 {
1715 s_runnables[i]->run();
1716 }
1717
1718 s_runnables.clear();
1719 return true;
1720 }
1721}
1722
1723void DiffTextWindow::recalcWordWrap(bool bWordWrap, size_t wrapLineVectorSize, qint32 visibleTextWidth)
1724{

Callers

nothing calls this directly

Calls 6

setStayHiddenMethod · 0.80
setMaxNofStepsMethod · 0.80
runMethod · 0.80
sizeMethod · 0.45
setCurrentMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected