summaryrefslogtreecommitdiff
path: root/src/canvastoolthreshold.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-03-18 18:18:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-03-18 18:18:57 +0100
commit57f4d38841c40cad3c206abdd16eebaed753aa1c (patch)
treec7e5a40b457845b2fb296563add9599d2e81384e /src/canvastoolthreshold.h
parent9364b9bb84f607d8603f60b86f965b77e03d8c70 (diff)
Update all fiels to adhere to style-guide
Diffstat (limited to 'src/canvastoolthreshold.h')
-rw-r--r--src/canvastoolthreshold.h37
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__*/