src/widgets/colorinput.h@e1d646a4cbd8
src/widgets/colorinput.h
Sun, 09 Apr 2023 15:59:08 +0300
- author
- Teemu Piippo <teemu.s.piippo@gmail.com>
- date
- Sun, 09 Apr 2023 15:59:08 +0300
- changeset 362
- e1d646a4cbd8
- parent 96
-
165777a20dc7
- permissions
- -rw-r--r--
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
#ifndef COLORINPUT_H
#define COLORINPUT_H
#include <QWidget>
namespace Ui {
class ColorInput;
}
class ColorInput : public QWidget
{
Q_OBJECT
public:
explicit ColorInput(QWidget *parent = nullptr);
~ColorInput();
private:
Ui::ColorInput *ui;
};
#endif // COLORINPUT_H