diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:38:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-20 16:38:15 +0300 |
commit | 747dc30f256606e28fd932a9626da7c328114036 (patch) | |
tree | 1b3e7e70ba439d14d4936660d44c95c27816a11b /src/gui/setup_relations.cpp | |
parent | cef2952156ab09371ed04beec00d0f1e8615ada9 (diff) | |
download | plus-747dc30f256606e28fd932a9626da7c328114036.tar.gz plus-747dc30f256606e28fd932a9626da7c328114036.tar.bz2 plus-747dc30f256606e28fd932a9626da7c328114036.tar.xz plus-747dc30f256606e28fd932a9626da7c328114036.zip |
fix style in gui directory.
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r-- | src/gui/setup_relations.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index 562e86e6f..ccc6d8ce2 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -98,6 +98,7 @@ public: Widget2(widget), TableModel(), mPlayers(nullptr), + mWidgets(), mListModel(new PlayerRelationListModel) { playerRelationsUpdated(); @@ -247,7 +248,9 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : player_relations.getDefault() & PlayerRelation::TRADE)), mDefaultWhisper(new CheckBox(this, _("Allow whispers"), player_relations.getDefault() & PlayerRelation::WHISPER)), - mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)) + mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)), + mIgnoreActionChoicesModel(new IgnoreChoicesListModel), + mIgnoreActionChoicesBox(new DropDown(widget, mIgnoreActionChoicesModel)) { setName(_("Relations")); @@ -258,8 +261,6 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : RELATION_CHOICE_COLUMN_WIDTH); mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf)); - mIgnoreActionChoicesModel = new IgnoreChoicesListModel; - mIgnoreActionChoicesBox = new DropDown(widget, mIgnoreActionChoicesModel); for (int i = 0; i < COLUMNS_NR; i++) { |