You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Merge pull request #34960 from johannesgunnar/spin_box-apply-method
Spinbox apply input method
This commit is contained in:
@@ -259,6 +259,10 @@ bool SpinBox::is_editable() const {
|
||||
return line_edit->is_editable();
|
||||
}
|
||||
|
||||
void SpinBox::apply() {
|
||||
_text_entered(line_edit->get_text());
|
||||
}
|
||||
|
||||
void SpinBox::_bind_methods() {
|
||||
|
||||
//ClassDB::bind_method(D_METHOD("_value_changed"),&SpinBox::_value_changed);
|
||||
@@ -272,6 +276,7 @@ void SpinBox::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_prefix"), &SpinBox::get_prefix);
|
||||
ClassDB::bind_method(D_METHOD("set_editable", "editable"), &SpinBox::set_editable);
|
||||
ClassDB::bind_method(D_METHOD("is_editable"), &SpinBox::is_editable);
|
||||
ClassDB::bind_method(D_METHOD("apply"), &SpinBox::apply);
|
||||
ClassDB::bind_method(D_METHOD("_line_edit_focus_exit"), &SpinBox::_line_edit_focus_exit);
|
||||
ClassDB::bind_method(D_METHOD("get_line_edit"), &SpinBox::get_line_edit);
|
||||
ClassDB::bind_method(D_METHOD("_line_edit_input"), &SpinBox::_line_edit_input);
|
||||
|
||||
@@ -88,6 +88,8 @@ public:
|
||||
void set_prefix(const String &p_prefix);
|
||||
String get_prefix() const;
|
||||
|
||||
void apply();
|
||||
|
||||
SpinBox();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user