Sun, 09 Apr 2023 15:59:08 +0300
Extracted the state of the program into a MainState structure, and extracted local functions of main() into static functions.
I was planning to make the core logic and state of the program into a Main class, which would be a QObject that would
have lots of signals and slots, but it looks like this works even without it
96 | 1 | #include "colorinput.h" |
2 | #include "ui_colorinput.h" | |
3 | ||
4 | ColorInput::ColorInput(QWidget *parent) : | |
5 | QWidget(parent), | |
6 | ui(new Ui::ColorInput) | |
7 | { | |
8 | ui->setupUi(this); | |
9 | } | |
10 | ||
11 | ColorInput::~ColorInput() | |
12 | { | |
13 | delete ui; | |
14 | } |