From f474c3c923fe5bb27c1ee11e2c6dd57e41889f27 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 2 Oct 2011 09:58:10 +0200 Subject: Made conenctions for CanvasTool work (again...). --- dgedit/canvastoolselections.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dgedit/canvastoolselections.h') diff --git a/dgedit/canvastoolselections.h b/dgedit/canvastoolselections.h index a8b37a3..a9e4d56 100644 --- a/dgedit/canvastoolselections.h +++ b/dgedit/canvastoolselections.h @@ -40,6 +40,7 @@ Q_OBJECT public: CanvasToolSelections(Canvas *canvas); + QString name() { return "Selections"; } bool mouseMoveEvent(QMouseEvent *event); bool mousePressEvent(QMouseEvent *event); bool mouseReleaseEvent(QMouseEvent *event); @@ -55,6 +56,7 @@ signals: public slots: void autoCreateSelections(); void clearSelections(); + void thresholdChanged(double threshold); private: bool selection_is_moving_left; @@ -64,8 +66,7 @@ private: Canvas *canvas; - float *data; - size_t size; + double threshold; QColor colSelBg; QColor colSel; -- cgit v1.2.3