| 31 | } |
| 32 | |
| 33 | DebugLogDock::DebugLogDock(QWidget *parent) : |
| 34 | QDockWidget(parent), |
| 35 | ui(new Ui::DebugLogDock) |
| 36 | { |
| 37 | ui->setupUi(this); |
| 38 | |
| 39 | output = ui->txtDebugOutput; |
| 40 | DebugManager::addMessageHandler(debugLogDockMessageHandler); |
| 41 | |
| 42 | connect(this, &QDockWidget::visibilityChanged, this, [=](bool visible) { |
| 43 | if (visible) { |
| 44 | ui->txtDebugOutput->horizontalScrollBar()->setValue(0); |
| 45 | } |
| 46 | }); |
| 47 | } |
| 48 | |
| 49 | DebugLogDock::~DebugLogDock() |
| 50 | { |
nothing calls this directly
no outgoing calls
no test coverage detected