diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-21 00:45:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-21 00:45:24 +0300 |
commit | cfa5391c1be51ef49380e398a72c813255d6316e (patch) | |
tree | 32e9f77ae80e72a6388923dddb90721e661394e5 /src/gui/npcpostdialog.cpp | |
parent | 31acb66791e27b6cfa846302156ad2e7a88f5f04 (diff) | |
download | manaverse-cfa5391c1be51ef49380e398a72c813255d6316e.tar.gz manaverse-cfa5391c1be51ef49380e398a72c813255d6316e.tar.bz2 manaverse-cfa5391c1be51ef49380e398a72c813255d6316e.tar.xz manaverse-cfa5391c1be51ef49380e398a72c813255d6316e.zip |
first part of checks and style fixes.
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index a6b12f833..f1c2cacea 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -40,14 +40,16 @@ NpcPostDialog::DialogList NpcPostDialog::instances; NpcPostDialog::NpcPostDialog(int npcId): Window(_("NPC"), false, nullptr, "npcpost.xml"), - mNpcId(npcId) + ActionListener(), + mNpcId(npcId), + mText(new TextBox), + mSender(new TextField) { setContentSize(400, 180); // create text field for receiver gcn::Label *senderText = new Label(_("To:")); senderText->setPosition(5, 5); - mSender = new TextField; mSender->setPosition(senderText->getWidth() + 5, 5); mSender->setWidth(65); @@ -60,7 +62,6 @@ NpcPostDialog::NpcPostDialog(int npcId): - (cancelButton->getWidth() + 2), sendButton->getY()); // create textfield for letter - mText = new TextBox; mText->setHeight(400 - (mSender->getHeight() + sendButton->getHeight())); mText->setEditable(true); |