#include "vogleditor_output.h"
#include <QTextEdit>
+vogleditor_output gs_OUTPUT;
+
vogleditor_output::vogleditor_output()
{
}
{
if (m_pTextEdit != NULL)
{
- m_pTextEdit->append("Warning: ");
- m_pTextEdit->append(pWarning);
+ QString msg = QString("Warning: %1").arg(pWarning);
+ m_pTextEdit->append(msg);
}
}
-
void vogleditor_output::error(const char* pError)
{
if (m_pTextEdit != NULL)
{
- m_pTextEdit->append("ERROR: ");
- m_pTextEdit->append(pError);
+ QString msg = QString("ERROR: %1").arg(pError);
+ m_pTextEdit->append(msg);
}
}
QTextEdit* m_pTextEdit;
};
-static vogleditor_output gs_OUTPUT;
+extern vogleditor_output gs_OUTPUT;
static void vogleditor_output_init(QTextEdit* pTextEdit) { gs_OUTPUT.init(pTextEdit); }
static void vogleditor_output_message(const char* pMessage) { gs_OUTPUT.message(pMessage); }