diff options
Diffstat (limited to 'src/canvastoolthreshold.h')
-rw-r--r-- | src/canvastoolthreshold.h | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/canvastoolthreshold.h b/src/canvastoolthreshold.h index 907e312..1279c75 100644 --- a/src/canvastoolthreshold.h +++ b/src/canvastoolthreshold.h @@ -24,8 +24,7 @@ * along with DrumGizmo; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#ifndef __DRUMGIZMO_CANVASTOOLTHRESHOLD_H__ -#define __DRUMGIZMO_CANVASTOOLTHRESHOLD_H__ +#pragma once #include "canvastool.h" @@ -33,29 +32,29 @@ #include "canvas.h" -class CanvasToolThreshold : public CanvasTool { -Q_OBJECT +class CanvasToolThreshold + : public CanvasTool +{ + Q_OBJECT public: - CanvasToolThreshold(Canvas *canvas); + CanvasToolThreshold(Canvas* canvas); - QString name() { return "Threshold"; } - bool mouseMoveEvent(QMouseEvent *event); - bool mousePressEvent(QMouseEvent *event); - bool mouseReleaseEvent(QMouseEvent *event); - void paintEvent(QPaintEvent *event, QPainter &painter); + QString name() { return "Threshold"; } + bool mouseMoveEvent(QMouseEvent* event); + bool mousePressEvent(QMouseEvent* event); + bool mouseReleaseEvent(QMouseEvent* event); + void paintEvent(QPaintEvent* event, QPainter& painter); signals: - void thresholdChanged(double threshold); - void thresholdChanging(double threshold); + void thresholdChanged(double threshold); + void thresholdChanging(double threshold); private: - float threshold; - bool threshold_is_moving; + float threshold; + bool threshold_is_moving; - Canvas *canvas; + Canvas* canvas; - QColor colThreshold; - QColor colThresholdMoving; + QColor colThreshold; + QColor colThresholdMoving; }; - -#endif/*__DRUMGIZMO_CANVASTOOLTHRESHOLD_H__*/ |