summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-11-12 17:21:08 +0000
committerDavid Athay <ko2fan@gmail.com>2008-11-12 17:21:08 +0000
commit218ab7cb408cee2148e87a15f8177b0a0a82c66a (patch)
treee78a774737f1f023947e36aeb857dbb28551caa8 /src/gui/npcpostdialog.cpp
parent87607bbc8bf97d8204be4b3eae6eeb5a51bb0ea4 (diff)
downloadmana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.gz
mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.bz2
mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.xz
mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.zip
Fixed multiline editing for letters
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r--src/gui/npcpostdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp
index b50154a8..2d3fce64 100644
--- a/src/gui/npcpostdialog.cpp
+++ b/src/gui/npcpostdialog.cpp
@@ -22,6 +22,7 @@
*/
#include "npcpostdialog.h"
+#include "textbox.h"
#include "textfield.h"
#include "button.h"
#include "scrollarea.h"
@@ -53,8 +54,9 @@ NpcPostDialog::NpcPostDialog():
sendButton->getY());
// create textfield for letter
- mText = new TextField();
+ mText = new TextBox();
mText->setHeight(400 - (mSender->getHeight() + sendButton->getHeight()));
+ mText->setEditable(true);
// create scroll box for letter text
ScrollArea *scrollArea = new ScrollArea(mText);