summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index fe6db718..01d7330c 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -33,9 +33,10 @@
MiniStatusWindow::MiniStatusWindow():
Window("")
{
+ setWindowName("MiniStatus");
setResizable(false);
- setTitleBarHeight(0);
setMovable(false);
+ setTitleBarHeight(0);
hpBar = new ProgressBar(1.0f,
0, 3, 100, 20,
@@ -53,8 +54,8 @@ MiniStatusWindow::MiniStatusWindow():
add(hpLabel);
add(mpLabel);
- setContentSize(mpBar->getX() + mpBar->getWidth(),
- mpBar->getY() + mpBar->getHeight());
+ setDefaultSize(0, 0, mpBar->getX() + mpBar->getWidth(),
+ mpBar->getY() + mpBar->getHeight());
}
MiniStatusWindow::~MiniStatusWindow()