forked from qt-creator/qt-creator
CODA: Application Output has been polished
This commit is contained in:
@@ -372,7 +372,7 @@ void CodaGdbAdapter::codaEvent(const CodaEvent &e)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CodaEvent::LoggingWriteEvent: // TODO: Not tested yet.
|
case CodaEvent::LoggingWriteEvent: // TODO: Not tested yet.
|
||||||
showMessage(e.toString(), AppOutput);
|
showMessage(e.toString() + '\n', AppOutput);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ void CodaRunControl::handleModuleLoadSuspended(const CodaEvent &event)
|
|||||||
void CodaRunControl::handleLogging(const CodaEvent &event)
|
void CodaRunControl::handleLogging(const CodaEvent &event)
|
||||||
{
|
{
|
||||||
const CodaLoggingWriteEvent &me = static_cast<const CodaLoggingWriteEvent &>(event);
|
const CodaLoggingWriteEvent &me = static_cast<const CodaLoggingWriteEvent &>(event);
|
||||||
appendMessage(me.message(), Utils::StdOutFormat);
|
appendMessage(me.message() + '\n', Utils::StdOutFormat);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodaRunControl::handleAddListener(const CodaCommandResult &result)
|
void CodaRunControl::handleAddListener(const CodaCommandResult &result)
|
||||||
|
|||||||
@@ -441,10 +441,7 @@ CodaLoggingWriteEvent::CodaLoggingWriteEvent(const QByteArray &console, const QB
|
|||||||
|
|
||||||
QString CodaLoggingWriteEvent::toString() const
|
QString CodaLoggingWriteEvent::toString() const
|
||||||
{
|
{
|
||||||
QByteArray msgBA = m_console;
|
return QString::fromUtf8(m_message);
|
||||||
msgBA += ": ";
|
|
||||||
msgBA += m_message;
|
|
||||||
return QString::fromUtf8(msgBA);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------- CodaIdEvent
|
// -------------- CodaIdEvent
|
||||||
|
|||||||
Reference in New Issue
Block a user