diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-27 13:39:32 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2024-07-27 13:39:32 +0200 |
commit | fc29354d86e6a8b5601e92405b89a1da27406ce7 (patch) | |
tree | e31069154ad5bd9497764b6205dd4d3a411b40eb /src/canvastoolthreshold.h | |
parent | 329110e3230a6518f024c612842b04afdea1cd03 (diff) |
WIP
Diffstat (limited to 'src/canvastoolthreshold.h')
-rw-r--r-- | src/canvastoolthreshold.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/canvastoolthreshold.h b/src/canvastoolthreshold.h index 936bf68..8847ecb 100644 --- a/src/canvastoolthreshold.h +++ b/src/canvastoolthreshold.h @@ -30,16 +30,15 @@ #include <QColor> -#include "canvas.h" - -class Instrument; +class Canvas; class CanvasToolThreshold : public CanvasTool { Q_OBJECT public: - CanvasToolThreshold(Canvas* canvas, Instrument& instrument); + CanvasToolThreshold(Canvas& canvas, double default_value, + QColor color, QColor moving_color); QString name() { return tr("Threshold"); } bool mouseMoveEvent(QMouseEvent* event); @@ -52,13 +51,11 @@ signals: void thresholdChanging(double threshold); private: - float threshold; + double threshold; bool threshold_is_moving; - Canvas* canvas; + Canvas& canvas; QColor colThreshold; QColor colThresholdMoving; - - Instrument& instrument; }; |