MCPcopy Create free account
hub / github.com/KDE/okular / toString

Method toString

core/document.cpp:5790–5803  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5788}
5789
5790QString DocumentViewport::toString() const
5791{
5792 // start string with page number
5793 QString s = QString::number(pageNumber);
5794 // if has center coordinates, save them on string
5795 if (rePos.enabled) {
5796 s += QStringLiteral(";C2:") + QString::number(rePos.normalizedX) + QLatin1Char(':') + QString::number(rePos.normalizedY) + QLatin1Char(':') + QString::number(rePos.pos);
5797 }
5798 // if has autofit enabled, save its state on string
5799 if (autoFit.enabled) {
5800 s += QStringLiteral(";AF1:") + (autoFit.width ? QLatin1Char('T') : QLatin1Char('F')) + QLatin1Char(':') + (autoFit.height ? QLatin1Char('T') : QLatin1Char('F'));
5801 }
5802 return s;
5803}
5804
5805bool DocumentViewport::isValid() const
5806{

Callers 15

currentProcessDbusNameFunction · 0.80
editorEventMethod · 0.80
giveAbsoluteUrlMethod · 0.80
savePageDocumentInfoMethod · 0.80
nextDocumentViewportMethod · 0.80
recalculateFormsMethod · 0.80
saveDocumentInfoMethod · 0.80
metaDataMethod · 0.80
setViewportMethod · 0.80
processFormatActionMethod · 0.80

Calls

no outgoing calls

Tested by 3

testPrintD_dataMethod · 0.64
testDocumentStructureMethod · 0.64