Commit 3345ba3c authored by grunau's avatar grunau
Browse files

LogViewerWidget: use BufferingLog for logging

LogViewerWidget now uses BufferingLog instead of QTextEditLog for
logging. This helps us test BufferingLog, and start integrating it into
the application.

git-svn-id: https://camplinux.in.tum.de/svn/campvis/branches/gui-redux@509 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
parent 366239e6
......@@ -36,8 +36,11 @@ namespace campvis {
{
setupGUI();
_log = new QTextEditLog(_logDisplay, this);
_log = new BufferingLog(100, this);
_log->addCat("", true);
connect(_log, SIGNAL(s_messageAppended(const QString&)),
_logDisplay, SLOT(append(const QString&)));
}
LogViewerWidget::~LogViewerWidget() {
......
......@@ -36,7 +36,7 @@
#include "tgt/qt/qtthreadedcanvas.h"
#include "tbb/mutex.h"
#include "application/tools/qtexteditlog.h"
#include "application/tools/bufferinglog.h"
#include <QLabel>
#include <QWidget>
......@@ -89,7 +89,7 @@ namespace campvis {
QPushButton* _clear_button; ///< Button used for clearing the log display
QLineEdit* _filter_line_edit; ///< Text field where filter terms are entered
QLabel* _filter_label; ///< Button used for clearing the log display
QTextEditLog* _log; ///< Log appending messages to a QTextEdit
BufferingLog* _log; ///< Log buffering messages
QTextEdit* _logDisplay; ///< Widget displaying log messages
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment