summaryrefslogtreecommitdiff
path: root/scene/gui/spin_box.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-02-13 15:46:39 +0100
committerGitHub <noreply@github.com>2018-02-13 15:46:39 +0100
commit8d75b274051d5e922e04bc96927a7ed9a0e6ffb2 (patch)
tree324f3aea6d646b8bd6c2a91ea873ef8f5ddcf7bb /scene/gui/spin_box.h
parenteefb58a892dfd5f334cbc86522a1cf0763af77d3 (diff)
parentfe1ca3c6e649ac599029b71f4508f840fa91f208 (diff)
Merge pull request #16432 from Ovnuniarchos/master
SpinBoxes calculate correctly their width before first redraw.
Diffstat (limited to 'scene/gui/spin_box.h')
-rw-r--r--scene/gui/spin_box.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/spin_box.h b/scene/gui/spin_box.h
index b8565ec082..8863f44bef 100644
--- a/scene/gui/spin_box.h
+++ b/scene/gui/spin_box.h
@@ -62,6 +62,8 @@ class SpinBox : public Range {
void _line_edit_focus_exit();
+ inline void _adjust_width_for_icon(const Ref<Texture> icon);
+
protected:
void _gui_input(const Ref<InputEvent> &p_event);