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

Method slotAppendOutput

src/plugins/codeporting/codeportingmanager.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void CodePortingManager::slotAppendOutput(const QString &content, OutputPane::OutputFormat format, OutputPane::AppendMode mode)
99{
100 if (outputPane) {
101 QString newContent = content;
102 if (OutputPane::OutputFormat::NormalMessage == format
103 || OutputPane::OutputFormat::ErrorMessage == format) {
104 QDateTime curDatetime = QDateTime::currentDateTime();
105 QString time = curDatetime.toString("hh:mm:ss");
106 newContent = time + ": " + newContent;
107 }
108 outputPane->appendText(newContent, format, mode);
109 }
110}
111
112CodePortingManager::CodePortingManager(QObject *parent)
113 : QObject(parent),

Callers

nothing calls this directly

Calls 2

appendTextMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected