From be1300b05a4c6e50fe8f13efa8c66dda00a21016 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 15 Jul 2011 02:40:07 +0200 Subject: Added a naive way to display the window keyboard shortcut. This is not updated once the keys are reassigned but it will do the trick for now. --- src/gui/windowmenu.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui/windowmenu.h') diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h index b4b0446d..09374943 100644 --- a/src/gui/windowmenu.h +++ b/src/gui/windowmenu.h @@ -22,6 +22,8 @@ #ifndef WINDOWMENU_H #define WINDOWMENU_H +#include "keyboardconfig.h" + #include "gui/widgets/container.h" #include @@ -49,7 +51,9 @@ class WindowMenu : public Container, private: inline void addButton(const std::string& text, int &x, int &h, - const std::string& iconPath = std::string()); + const std::string& iconPath = std::string(), + KeyboardConfig::KeyAction key = + KeyboardConfig::KEY_NO_VALUE); EmotePopup *mEmotePopup; }; -- cgit v1.2.3-60-g2f50