summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 15:23:34 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 15:25:28 +0100
commit72f5288682f46af1f7c04c002172178c880e060b (patch)
tree444ef1af05fc74dd072ad2be51c6ff7ab7ce976e /src/gui/ministatus.cpp
parentbe25d46954a98b2590b522de5f8aa470ba4f9e81 (diff)
downloadmana-72f5288682f46af1f7c04c002172178c880e060b.tar.gz
mana-72f5288682f46af1f7c04c002172178c880e060b.tar.bz2
mana-72f5288682f46af1f7c04c002172178c880e060b.tar.xz
mana-72f5288682f46af1f7c04c002172178c880e060b.zip
Fixed inconsistency in default window sizes
The default window sizes were all too small, since they were specified in content size. On pressing "Reset Windows", the sizes would be interpreted as such and apply alright. The inconsistency is now removed, and the default window sizes are always the size of the whole widget now, not just the contents. Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index 436c90cd..0a52f516 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -74,8 +74,9 @@ MiniStatusWindow::MiniStatusWindow():
add(mMpLabel);
add(mXpLabel);
- setDefaultSize(0, 0, mXpBar->getX() + mXpBar->getWidth(),
+ setContentSize(mXpBar->getX() + mXpBar->getWidth(),
mXpBar->getY() + mXpBar->getHeight());
+ setDefaultSize(0, 0, getWidth(), getHeight());
loadWindowState();
}