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

Method slotSetFastSelectorLine

src/mergeresultwindow.cpp:706–717  ·  view source on GitHub ↗

The line is given as a index in the Diff3LineList. The function calculates the corresponding iterator. */

Source from the content-addressed store, hash-verified

704/** The line is given as a index in the Diff3LineList.
705 The function calculates the corresponding iterator. */
706void MergeResultWindow::slotSetFastSelectorLine(LineType line)
707{
708 MergeBlockList::iterator i;
709 for(i = m_mergeBlockList.begin(); i != m_mergeBlockList.end(); ++i)
710 {
711 if(line >= i->getIndex() && line < i->getIndex() + i->sourceRangeLength())
712 {
713 setFastSelector(i);
714 break;
715 }
716 }
717}
718
719qint32 MergeResultWindow::getNumberOfUnsolvedConflicts(qint32* pNrOfWhiteSpaceConflicts) const
720{

Callers

nothing calls this directly

Calls 3

endMethod · 0.80
getIndexMethod · 0.80
sourceRangeLengthMethod · 0.80

Tested by

no test coverage detected