Spinbox: increase/decrease with mouse held

This commit is contained in:
neikeq 2015-12-08 19:04:56 +01:00 committed by Ignacio Etcheverry
parent 2cc60386d8
commit d4051e6eb9
4 changed files with 102 additions and 2 deletions

View file

@ -31,6 +31,7 @@
#include "scene/gui/line_edit.h"
#include "scene/gui/range.h"
#include "scene/main/timer.h"
class SpinBox : public Range {
@ -39,6 +40,9 @@ class SpinBox : public Range {
LineEdit *line_edit;
int last_w;
Timer *range_click_timer;
void _range_click_timeout();
void _text_entered(const String& p_string);
virtual void _value_changed(double);
String prefix;