summaryrefslogtreecommitdiff
path: root/src/gui/beingpopup.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:20:07 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-26 22:23:15 +0200
commit2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118 (patch)
tree8e25c930ce9742b919b90f583d37445c1a81fa1d /src/gui/beingpopup.cpp
parent8331284990b8d998a7e323e6fcf3c25f2f7d60d8 (diff)
downloadmana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.gz
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.bz2
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.tar.xz
mana-2fc4e340c82e9e9a6a7b724e6f2411e37d7a1118.zip
Fixed the dimensions of the popup/tooltip
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r--src/gui/beingpopup.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index 56faed39..381bf011 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -41,13 +41,12 @@ BeingPopup::BeingPopup():
// Being Name
mBeingName = new Label("A");
mBeingName->setFont(boldFont);
- mBeingName->setPosition(getPadding(), getPadding());
- const int fontHeight = mBeingName->getHeight() + getPadding();
+ const int fontHeight = mBeingName->getHeight() + 3;
// Being's party
mBeingParty = new Label("A");
- mBeingParty->setPosition(getPadding(), fontHeight);
+ mBeingParty->setPosition(0, fontHeight);
add(mBeingName);
add(mBeingParty);
@@ -80,12 +79,12 @@ void BeingPopup::show(int x, int y, Being *b)
if (minWidth < mBeingParty->getWidth())
minWidth = mBeingParty->getWidth();
- setContentSize(minWidth + 10, (height * 2) + 10);
+ setContentSize(minWidth, height * 2);
}
else
{
mBeingParty->setCaption("");
- setContentSize(minWidth + 10, height + 10);
+ setContentSize(minWidth, height);
}
position(x, y);