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

Method print

src/difftextwindow.cpp:1312–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1310}
1311
1312void DiffTextWindow::print(RLPainter& p, const QRect&, qint32 firstLine, const LineType nofLinesPerPage)
1313{
1314 if(d->getDiff3LineVector() == nullptr || !updatesEnabled() ||
1315 (d->m_diff3WrapLineVector.empty() && d->m_bWordWrap))
1316 return;
1317 resetSelection();
1318 LineRef oldFirstLine = d->m_firstLine;
1319 d->m_firstLine = firstLine;
1320 QRect invalidRect = QRect(0, 0, 1000000000, 1000000000);
1321 gOptions->beginPrint();
1322 draw(p, invalidRect, firstLine, std::min(firstLine + nofLinesPerPage, getNofLines()));
1323 gOptions->endPrint();
1324 d->m_firstLine = oldFirstLine;
1325}
1326
1327void DiffTextWindow::draw(RLPainter& p, const QRect& invalidRect, const qint32 beginLine, const LineRef& endLine)
1328{

Callers

nothing calls this directly

Calls 3

beginPrintMethod · 0.80
endPrintMethod · 0.80
getDiff3LineVectorMethod · 0.45

Tested by

no test coverage detected