diff options
author | Julian T <julian@jtle.dk> | 2020-08-14 20:30:07 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-16 21:05:58 +0200 |
commit | 9b34ab6db773568011dc85fd73156b63da377e01 (patch) | |
tree | 2511b89ecdf948826e51d342610635b7e8dfbf33 /app/draw.hpp | |
parent | 5ca04e5b2ec8eef88df6cbd4e3d09ac7dab55c0d (diff) |
Better configuration
Diffstat (limited to 'app/draw.hpp')
-rw-r--r-- | app/draw.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/draw.hpp b/app/draw.hpp index cee5734..454558c 100644 --- a/app/draw.hpp +++ b/app/draw.hpp @@ -1,6 +1,7 @@ #ifndef DRAW_H #define DRAW_H +#include "config.hpp" #include <qimage.h> #include <qtimer.h> #include <qwidget.h> @@ -9,7 +10,7 @@ class DrawWidget : public QWidget { Q_OBJECT public: - DrawWidget(unsigned width, unsigned height); + DrawWidget(const Config &conf); void paintEvent(QPaintEvent*); QRgb *m_drawbuffer; @@ -22,6 +23,8 @@ class DrawWidget : public QWidget { private: unsigned char i; + + const Config &m_conf; }; #endif |