3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
14 #include "QLogDialog.h"
15 #include "qt_helpers.h"
17 #include "controllers/ControlLog.h"
21 #include <QTextBrowser>
22 #include <QPushButton>
27 typedef QController<ControlLog, QView<QLogDialog> > base_class;
29 QLog::QLog(Dialog & parent)
30 : base_class(parent, "")
34 void QLog::build_dialog()
36 dialog_.reset(new QLogDialog(this));
40 void QLog::update_contents()
42 setTitle(controller().title());
44 std::ostringstream ss;
45 controller().getContents(ss);
47 dialog_->logTB->setPlainText(toqstr(ss.str()));
50 } // namespace frontend