summaryrefslogtreecommitdiff
path: root/src/gui/statuspopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-08 19:41:19 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-08 19:41:19 +0300
commit30ef016b0a14f36dc480284e2d775295b5501dd4 (patch)
treea269c0983efb8dc9160bfe10b1dba26a302aff0c /src/gui/statuspopup.cpp
parent25a6eae7f4fb561bbf930be28ee09510b40ebc80 (diff)
downloadmanaplus-30ef016b0a14f36dc480284e2d775295b5501dd4.tar.gz
manaplus-30ef016b0a14f36dc480284e2d775295b5501dd4.tar.bz2
manaplus-30ef016b0a14f36dc480284e2d775295b5501dd4.tar.xz
manaplus-30ef016b0a14f36dc480284e2d775295b5501dd4.zip
Move most input code from keyboardconfig to inputmanager.
Diffstat (limited to 'src/gui/statuspopup.cpp')
-rw-r--r--src/gui/statuspopup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/statuspopup.cpp b/src/gui/statuspopup.cpp
index 420ffaf3d..cc0f5c030 100644
--- a/src/gui/statuspopup.cpp
+++ b/src/gui/statuspopup.cpp
@@ -32,6 +32,7 @@
#include "gui/widgets/textbox.h"
#include "graphics.h"
+#include "inputmanager.h"
#include "localplayer.h"
#include "units.h"
#include "keyboardconfig.h"
@@ -188,13 +189,13 @@ void StatusPopup::view(int x, int y)
void StatusPopup::setLabelText(gcn::Label *label, const char *text, int key)
{
label->setCaption(strprintf("%s %s", text,
- keyboard.getKeyValueString(key).c_str()));
+ inputManager.getKeyValueString(key).c_str()));
}
void StatusPopup::setLabelText2(gcn::Label *label, std::string text, int key)
{
label->setCaption(strprintf("%s %s", text.c_str(),
- keyboard.getKeyValueString(key).c_str()));
+ inputManager.getKeyValueString(key).c_str()));
label->adjustSize();
}