diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-18 02:00:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-18 02:00:19 +0300 |
commit | 43f84a5a22423b831b1d3a4b3572546803324dd4 (patch) | |
tree | 187459d3c84abae3d9001238b8314e577b68b107 /src/gui/setup_relations.cpp | |
parent | 213bc274d777946f7c39e5f5ccd859e766aef4ae (diff) | |
download | plus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.gz plus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.bz2 plus-43f84a5a22423b831b1d3a4b3572546803324dd4.tar.xz plus-43f84a5a22423b831b1d3a4b3572546803324dd4.zip |
Extend dropdown theming.
New options in dropdown.xml:
padding - text padding from all sides
imagePadding - image padding from right
frameSize - frame size
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r-- | src/gui/setup_relations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index e57a74561..05f6ecb26 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -160,7 +160,7 @@ public: gcn::Widget *const widget = new Label(name); mWidgets.push_back(widget); - gcn::DropDown *const choicebox = new DropDown(mListModel); + DropDown *const choicebox = new DropDown(mListModel); choicebox->setSelected(player_relations.getRelation(name)); mWidgets.push_back(choicebox); } @@ -170,7 +170,7 @@ public: virtual void updateModelInRow(const int row) { - const gcn::DropDown *const choicebox = static_cast<gcn::DropDown *>( + const DropDown *const choicebox = static_cast<DropDown *>( getElementAt(row, RELATION_CHOICE_COLUMN)); player_relations.setRelation(getPlayerAt(row), static_cast<PlayerRelation::Relation>( |