diff options
author | frosch <frosch@openttd.org> | 2012-11-13 21:46:54 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-11-13 21:46:54 +0000 |
commit | fd55399167115dbb06e77bb03f85681ba318f5f2 (patch) | |
tree | 98b7ed09e96dbb242e05bd7551e750afb4fc1a6f /src/signs_gui.cpp | |
parent | 67f92f16eda1e9d251d665df7ceaa6127af4c593 (diff) | |
download | openttd-fd55399167115dbb06e77bb03f85681ba318f5f2.tar.xz |
(svn r24731) -Codechange: Remove OnOpenOSKWindow and instead specify OK and CANCEL buttons via QueryString members.
Diffstat (limited to 'src/signs_gui.cpp')
-rw-r--r-- | src/signs_gui.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/signs_gui.cpp b/src/signs_gui.cpp index 1089a2f87..1cb5e8621 100644 --- a/src/signs_gui.cpp +++ b/src/signs_gui.cpp @@ -446,6 +446,8 @@ struct SignWindow : QueryStringBaseWindow, SignList { SignWindow(const WindowDesc *desc, const Sign *si) : QueryStringBaseWindow(MAX_LENGTH_SIGN_NAME_CHARS * MAX_CHAR_LENGTH, MAX_LENGTH_SIGN_NAME_CHARS) { this->caption = STR_EDIT_SIGN_CAPTION; + this->cancel_button = WID_QES_CANCEL; + this->ok_button = WID_QES_OK; this->afilter = CS_ALPHANUMERAL; this->InitNested(desc, WN_QUERY_STRING_SIGN); @@ -562,11 +564,6 @@ struct SignWindow : QueryStringBaseWindow, SignList { } return state; } - - virtual void OnOpenOSKWindow(int wid) - { - ShowOnScreenKeyboard(this, wid, WID_QES_CANCEL, WID_QES_OK); - } }; static const NWidgetPart _nested_query_sign_edit_widgets[] = { |