summaryrefslogtreecommitdiff
path: root/src/gui/beingpopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-04 12:00:17 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-04 12:00:17 +0300
commit66d469fe20cff2749316afe3ba44ad74acfc1557 (patch)
tree15267204b4ab85be7b3e2ad64e7d7be6290be1bc /src/gui/beingpopup.cpp
parenta78b3a34de86d181f845f352b3c4a58e6ff03872 (diff)
downloadplus-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.gz
plus-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.bz2
plus-66d469fe20cff2749316afe3ba44ad74acfc1557.tar.xz
plus-66d469fe20cff2749316afe3ba44ad74acfc1557.zip
Fix popups sizes and padding.
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r--src/gui/beingpopup.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index 865e29abd..87db79aa6 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -49,16 +49,16 @@ BeingPopup::BeingPopup() :
{
// Being Name
mBeingName->setFont(boldFont);
- mBeingName->setPosition(getPadding(), getPadding());
+ mBeingName->setPosition(0, 0);
- const int fontHeight = mBeingName->getHeight() + getPadding();
+ const int fontHeight = mBeingName->getHeight();
// Being's party
- mBeingParty->setPosition(getPadding(), fontHeight);
+ mBeingParty->setPosition(0, fontHeight);
// Being's party
- mBeingGuild->setPosition(getPadding(), 2 * fontHeight);
- mBeingRank->setPosition(getPadding(), 3 * fontHeight);
- mBeingComment->setPosition(getPadding(), 4 * fontHeight);
+ mBeingGuild->setPosition(0, 2 * fontHeight);
+ mBeingRank->setPosition(0, 3 * fontHeight);
+ mBeingComment->setPosition(0, 4 * fontHeight);
mBeingParty->setForegroundColor(Theme::getThemeColor(Theme::POPUP));
mBeingGuild->setForegroundColor(Theme::getThemeColor(Theme::POPUP));
@@ -190,8 +190,8 @@ void BeingPopup::show(const int x, const int y, Being *const b)
if (label4)
height += getFont()->getHeight();
- setContentSize(minWidth + 10, height + 10);
-
+ const int pad = 2 * getPadding();
+ setContentSize(minWidth + pad, height + pad);
position(x, y);
return;
}