summaryrefslogtreecommitdiff
path: root/plugingui/scrollbar.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-12-19 19:59:39 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-12-19 19:59:39 +0100
commitdadc9780a49c467ab469abe1c9384e2ac653babf (patch)
tree25f1034e2e7cdef0c36e4138fef5e4ddfe74703e /plugingui/scrollbar.h
parent52aa0fb9a1745bd7919c42a37ba48f6bf77e2984 (diff)
Fix missing initialisations.
Diffstat (limited to 'plugingui/scrollbar.h')
-rw-r--r--plugingui/scrollbar.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/plugingui/scrollbar.h b/plugingui/scrollbar.h
index 42e504e..99f8377 100644
--- a/plugingui/scrollbar.h
+++ b/plugingui/scrollbar.h
@@ -26,6 +26,8 @@
*/
#pragma once
+#include <limits>
+
#include "widget.h"
#include "image.h"
#include "notifier.h"
@@ -58,13 +60,13 @@ protected:
void mouseMoveEvent(MouseMoveEvent* mouseMoveEvent) override;
private:
- int maxValue;
- int currentValue;
- int rangeValue;
+ int maxValue{100};
+ int currentValue{0};
+ int rangeValue{10};
- int yOffset;
- int valueOffset;
- bool dragging;
+ int yOffset{0};
+ int valueOffset{0};
+ bool dragging{false};
Image bg_img;
};