Add log widget to lower dock
[frida/frida.git] / src / gui / widgets / LogDock.cxx
1 #include "LogDock.hxx"
2 #include "FridaDock.hxx"
3 #include "LogDockAppender.hxx"
4
5 #include "log4cxx/basicconfigurator.h"
6
7 LogDock::LogDock(FridaDock* parent)
8 : QTableWidget(0, 3, parent) {
9 verticalHeader()->hide();
10 horizontalHeader()->hide();
11 horizontalHeader()->setStretchLastSection(true);
12 verticalHeader()->setDefaultSectionSize(18);
13 appender = new LogDockAppender;
14 appender->setTarget(this);
15 log4cxx::BasicConfigurator::configure(appender);
16 }
17
18 LogDock::~LogDock() {
19 delete appender;
20 }