aboutsummaryrefslogtreecommitdiff
path: root/app/draw.cpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-08-13 21:17:30 +0200
committerJulian T <julian@jtle.dk>2020-08-13 21:17:30 +0200
commit65d26692ae8736f67f3951f088b26086eeb6b829 (patch)
tree7043254e116f2fab7690b5565d114a6afac3cd9b /app/draw.cpp
parent5b0b916c561f602723b9ae80f5462a7939b652a1 (diff)
Added nicer ui which can save
Diffstat (limited to 'app/draw.cpp')
-rw-r--r--app/draw.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/draw.cpp b/app/draw.cpp
index 469b469..b3187be 100644
--- a/app/draw.cpp
+++ b/app/draw.cpp
@@ -7,16 +7,12 @@
#include <qwindowdefs.h>
#include <iostream>
-DrawWidget::DrawWidget(unsigned width, unsigned height) : QWidget(), m_timer(this) {
+DrawWidget::DrawWidget(unsigned width, unsigned height) : QWidget() {
m_width = width;
m_height = height;
m_drawbuffer = new QRgb[width * height];
m_img = QImage((uchar*)m_drawbuffer, width, height, QImage::Format_ARGB32);
-
- QObject::connect(&m_timer, &QTimer::timeout, this, &DrawWidget::redraw);
-
- m_timer.start(500);
}
void DrawWidget::paintEvent(QPaintEvent*) {