MCPcopy Create free account
hub / github.com/Hashiao/wuwaBackendTool / DebugForm

Method DebugForm

debugform.cpp:4–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "ui_debugform.h"
3
4DebugForm::DebugForm(QWidget *parent) :
5 QWidget(parent),
6 ui(new Ui::DebugForm)
7{
8 ui->setupUi(this);
9 lockWidgetList.push_back(ui->colorEditText);
10 lockWidgetList.push_back(ui->getGameWin);
11 lockWidgetList.push_back(ui->tempThres);
12
13 lockWidgetList.push_back(ui->testFindColor);
14 lockWidgetList.push_back(ui->testFindPic);
15
16 lockWidgetList.push_back(ui->testRebootGame);
17 lockWidgetList.push_back(ui->activateBtn);
18 lockWidgetList.push_back(ui->deactivateBtn);
19 lockWidgetList.push_back(ui->isActivate);
20 lockWidgetList.push_back(ui->saveImgPath);
21 lockWidgetList.push_back(ui->capImgWaitMs);
22
23 for(auto widget : lockWidgetList){
24 widget->setVisible(false);
25 }
26
27 m_debugBackendWorker.moveToThread(&m_backendThread);
28 m_backendThread.start();
29
30 connect(this, &DebugForm::startActivateCap, &this->m_debugBackendWorker, &DebugBackendWorker::onStartActivateCap);
31 connect(&this->m_debugBackendWorker, &DebugBackendWorker::activateCapDone, this, &DebugForm::onActivateCapDone);
32}
33
34DebugForm::~DebugForm()
35{

Callers

nothing calls this directly

Calls 2

startMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected