summaryrefslogtreecommitdiff
path: root/src/gui/widgets/statspagebasic.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 01:07:46 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 01:07:46 +0300
commitb717426195ce73de9a70412a1e40fb01898264ae (patch)
treedb2d44f23f100cf4ee8cf94a2081e36f824b50f0 /src/gui/widgets/statspagebasic.cpp
parent43aa8e6bedff642ba584c447c03886c1f0c52aac (diff)
downloadmv-b717426195ce73de9a70412a1e40fb01898264ae.tar.gz
mv-b717426195ce73de9a70412a1e40fb01898264ae.tar.bz2
mv-b717426195ce73de9a70412a1e40fb01898264ae.tar.xz
mv-b717426195ce73de9a70412a1e40fb01898264ae.zip
Remove default parameters from vertcontainer.
Diffstat (limited to 'src/gui/widgets/statspagebasic.cpp')
-rw-r--r--src/gui/widgets/statspagebasic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/statspagebasic.cpp b/src/gui/widgets/statspagebasic.cpp
index 249d4f337..c55991565 100644
--- a/src/gui/widgets/statspagebasic.cpp
+++ b/src/gui/widgets/statspagebasic.cpp
@@ -41,7 +41,7 @@ StatsPageBasic::StatsPageBasic(const Widget2 *const widget) :
AttributeListener(),
StatListener(),
mAttrs(),
- mAttrCont(new VertContainer(this, 32)),
+ mAttrCont(new VertContainer(this, 32, true, 0)),
mAttrScroll(new ScrollArea(this, mAttrCont, Opaque_false)),
mCharacterPointsLabel(new Label(this, "C"))
{
@@ -63,7 +63,7 @@ StatsPageBasic::StatsPageBasic(const Widget2 *const widget) :
stat.name,
stat.tag);
disp->update();
- mAttrCont->add2(disp, true);
+ mAttrCont->add2(disp, true, -1);
mAttrs[stat.attr] = disp;
}
@@ -71,7 +71,7 @@ StatsPageBasic::StatsPageBasic(const Widget2 *const widget) :
mCharacterPointsLabel->setCaption(strprintf(_("Character points: %d"),
PlayerInfo::getAttribute(Attributes::PLAYER_CHAR_POINTS)));
mCharacterPointsLabel->adjustSize();
- mAttrCont->add1(mCharacterPointsLabel);
+ mAttrCont->add1(mCharacterPointsLabel, -1);
}
void StatsPageBasic::widgetResized(const Event &event A_UNUSED)