Cleaned old code. Changed the GUI refresh. Now there is a global receive
dmx instead one by layer
This commit is contained in:
parent
90f3b093c0
commit
d7db568784
10 changed files with 78 additions and 67 deletions
18
src/main.cpp
18
src/main.cpp
|
@ -19,16 +19,16 @@
|
|||
*/
|
||||
|
||||
#include <QApplication>
|
||||
#include <QMutex>
|
||||
#include <QMutexLocker>
|
||||
//#include <QMutex>
|
||||
//#include <QMutexLocker>
|
||||
#include "libremediaserver-audio.h"
|
||||
|
||||
// Handler for pipe the stderr to a log file and texEdit
|
||||
bool initMessageHandler = false;
|
||||
QFile outFile;
|
||||
QMutex mutex;
|
||||
//bool initMessageHandler = false;
|
||||
//QFile outFile;
|
||||
//QMutex mutex;
|
||||
//QMutexLocker mutexLocker(mutex);
|
||||
|
||||
/*
|
||||
void MessageHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg)
|
||||
{
|
||||
Q_UNUSED(context);
|
||||
|
@ -56,7 +56,7 @@ void MessageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
|
|||
initMessageHandler = true;
|
||||
}
|
||||
QTextStream ts(&outFile);*/
|
||||
if (libreMediaServerAudio::textEdit == 0)
|
||||
/* if (libreMediaServerAudio::textEdit == 0)
|
||||
{
|
||||
QByteArray localMsg = msg.toLocal8Bit();
|
||||
switch (type) {
|
||||
|
@ -134,7 +134,7 @@ void MessageHandler(QtMsgType type, const QMessageLogContext &context, const QSt
|
|||
// libreMediaServerAudio::textEdit->append(txt);
|
||||
}
|
||||
// mutex.unlock();
|
||||
}
|
||||
}*/
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
qInstallMessageHandler(MessageHandler);
|
||||
}*/
|
||||
qInstallMessageHandler(MessageHandler);
|
||||
// qInstallMessageHandler(MessageHandler);
|
||||
QApplication app(argc, argv);
|
||||
|
||||
QStringList args = app.arguments();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue