1 #include "debugengine.h"
3 debugengine::debugengine()
5 mut_lock
= new QMutex(QMutex::Recursive
);
8 debugengine
*debugengine::getInstance()
10 static debugengine objectInstance
;
12 return &objectInstance
;
15 debugengine::~debugengine()
21 void debugengine::setTextEdit(QTextBrowser
*textEdit
)
23 QMutexLocker
lock(mut_lock
);
28 void debugengine::writeMessage(const QString
&message
)
30 QMutexLocker
lock(mut_lock
);
33 _textEdit
->append(message
);
37 void debugengine::setColor(const QColor
&c
)
39 QMutexLocker
lock(mut_lock
);
42 _textEdit
->setTextColor(c
);