MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / appendText

Method appendText

src/common/widget/outputpane.cpp:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void OutputPane::appendText(const QString &text, OutputFormat format, AppendMode mode)
205{
206 if (d->outputList.isEmpty()
207 || d->outputList.last().mode != mode
208 || d->outputList.last().format != format) {
209 d->outputList.append({ text, mode, format });
210 } else {
211 auto &output = d->outputList.last();
212 output.text.append(text);
213 }
214
215 if (!d->outputTimer.isActive())
216 d->outputTimer.start();
217}
218
219QTextDocument *OutputPane::document() const
220{

Callers 11

slotAppendOutputMethod · 0.80
printOutputMethod · 0.80
synOutputMsgMethod · 0.80
synOutputMsgMethod · 0.80
synPrintOutputMethod · 0.80
getRunArgumentsMethod · 0.80
printOutputMethod · 0.80
checkToolInstalledMethod · 0.80
outputMethod · 0.80
addOutputMethod · 0.80

Calls 4

isEmptyMethod · 0.45
appendMethod · 0.45
isActiveMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected