MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / toPlainText

Method toPlainText

launcher/launch/LogModel.cpp:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85QString LogModel::toPlainText()
86{
87 QString out;
88 out.reserve(m_numLines * 80);
89 for(int i = 0; i < m_numLines; i++)
90 {
91 QString & line = m_content[(m_firstLine + i) % m_maxLines].line;
92 out.append(line + '\n');
93 }
94 out.squeeze();
95 return out;
96}
97
98void LogModel::setMaxLines(int maxLines)
99{

Callers 11

applySettingsMethod · 0.80
on_btnPaste_clickedMethod · 0.80
on_btnCopy_clickedMethod · 0.80
applyMethod · 0.80
applySettingsMethod · 0.80
on_btnPaste_clickedMethod · 0.80
on_btnCopy_clickedMethod · 0.80
setModelDataMethod · 0.80
appendModMethod · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected