From bb94a1c1906de4b7d71690f15f05f5fe9fbdb444 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 22 Dec 2011 22:26:42 +0100 Subject: Changed INT and DELETE enum names to fix C::B compilation. This was introduced since Crush updated his mana lib pack. I simply changed the names to avoid a collision. Reviewed-by: Ablu. --- src/gui/widgets/inttextfield.cpp | 2 +- src/gui/widgets/textfield.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/inttextfield.cpp b/src/gui/widgets/inttextfield.cpp index fb02eae3..9e2182bd 100644 --- a/src/gui/widgets/inttextfield.cpp +++ b/src/gui/widgets/inttextfield.cpp @@ -37,7 +37,7 @@ void IntTextField::keyPressed(gcn::KeyEvent &event) const gcn::Key &key = event.getKey(); if (key.getValue() == Key::BACKSPACE || - key.getValue() == Key::DELETE) + key.getValue() == Key::DELETE_KEY) { setText(std::string()); event.consume(); diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index d06df376..6da69a76 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -248,7 +248,7 @@ void TextField::keyPressed(gcn::KeyEvent &keyEvent) } } break; - case Key::DELETE: + case Key::DELETE_KEY: { unsigned sz = mText.size(); while (mCaretPosition < sz) -- cgit v1.2.3-60-g2f50