summaryrefslogtreecommitdiff
path: root/src/gui/beingpopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 20:56:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 20:56:07 +0300
commitdeedde268a1c2fc0b7d802c20c9fc374e6a05c55 (patch)
tree10557487666ec5050de43db1c299c67d216f376c /src/gui/beingpopup.cpp
parent50692ac56d46a4767ef55a8272a2ccda32da7535 (diff)
downloadplus-deedde268a1c2fc0b7d802c20c9fc374e6a05c55.tar.gz
plus-deedde268a1c2fc0b7d802c20c9fc374e6a05c55.tar.bz2
plus-deedde268a1c2fc0b7d802c20c9fc374e6a05c55.tar.xz
plus-deedde268a1c2fc0b7d802c20c9fc374e6a05c55.zip
improve beingpopup class.
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r--src/gui/beingpopup.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index 63e3e1bef..67e414c7e 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -185,15 +185,16 @@ void BeingPopup::show(const int x, const int y, Being *const b)
if (label4 && label4->getWidth() > minWidth)
minWidth = label4->getWidth();
- int height = getFont()->getHeight();
+ const int height1 = getFont()->getHeight();
+ int height = height1;
if (label1)
- height += getFont()->getHeight();
+ height += height1;
if (label2)
- height += getFont()->getHeight();
+ height += height1;
if (label3)
- height += getFont()->getHeight();
+ height += height1;
if (label4)
- height += getFont()->getHeight();
+ height += height1;
setContentSize(minWidth, height);
position(x, y);