ref: change initialize logic

*complete without change animation
This commit is contained in:
semenov
2025-08-14 15:40:46 +03:00
parent 05e09792d7
commit 0c805708ef
38 changed files with 1047 additions and 1008 deletions

View File

@@ -1,13 +1,10 @@
#include "screenchecker.h"
#include <windows.h>
ScreenChecker::ScreenChecker(QWidget *mainWidget,DataParserOutput *dataParserOut, QHBoxLayout *layout, QObject *parent) :
ScreenChecker::ScreenChecker(QObject *parent) :
QObject(parent)
{
screenCount = 0;
this->mainWidget = mainWidget;
this->layout = layout;
this->dataParserOutput = dataParserOut;
}
void ScreenChecker::check()
@@ -129,6 +126,12 @@ QString ScreenChecker::getScreenCount() const
return QString::number(screenCount);
}
void ScreenChecker::initialize(DataParserOutput *dataParserOutput, QHBoxLayout *layout)
{
this->layout = layout;
this->dataParserOutput = dataParserOutput;
}
ScreenChecker::~ScreenChecker()
{
for (auto & button : buttons)