Spinbox: increase/decrease with mouse held
This commit is contained in:
parent
2cc60386d8
commit
d4051e6eb9
4 changed files with 102 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue