summaryrefslogtreecommitdiff
path: root/dgedit/canvas.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-07-29 17:53:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-07-29 17:53:10 +0200
commitdf8e372d4f8462f7dfe6ae0380ca69764e59faf4 (patch)
tree58406988209d924bb2e7e02487ac9e963aa3a4e9 /dgedit/canvas.cc
parentaab627accb4b57166259f0128cc16b88b4c1dc25 (diff)
New listen tool.
Diffstat (limited to 'dgedit/canvas.cc')
-rw-r--r--dgedit/canvas.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgedit/canvas.cc b/dgedit/canvas.cc
index 8249dd2..c70f730 100644
--- a/dgedit/canvas.cc
+++ b/dgedit/canvas.cc
@@ -36,6 +36,7 @@
#include "canvastoolselections.h"
#include "canvastoolthreshold.h"
+#include "canvastoollisten.h"
#define DEFYSCALE 200
@@ -67,6 +68,7 @@ Canvas::Canvas(QWidget *parent)
wav = QImage(width(), height(), QImage::Format_RGB32);
+ tools.push_back(new CanvasToolListen(this));
tools.push_back(new CanvasToolThreshold(this));
tools.push_back(new CanvasToolSelections(this));
}
@@ -146,6 +148,8 @@ void Canvas::mouseMoveEvent(QMouseEvent *event)
for(int i = 0; i < tools.size(); i++) {
if(tools[i]->mouseMoveEvent(event)) return;
}
+
+ setCursor(Qt::ArrowCursor);
}
void Canvas::mousePressEvent(QMouseEvent *event)