summaryrefslogtreecommitdiff
path: root/src/gui/widgets/characterdisplay.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-05 20:26:59 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-05 20:31:40 +0300
commit4e6f98cfd788965bd382f1722e2a5d895dda3bc6 (patch)
tree12b6195bbc66b49389f65d8c4831cd259e3429bc /src/gui/widgets/characterdisplay.cpp
parent322aea1d69a47e8080bcd0552473a5a5d66c5e1a (diff)
downloadmv-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.gz
mv-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.bz2
mv-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.xz
mv-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.zip
Add support for min and max label resize size.
Using it in character selection dialog.
Diffstat (limited to 'src/gui/widgets/characterdisplay.cpp')
-rw-r--r--src/gui/widgets/characterdisplay.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/characterdisplay.cpp b/src/gui/widgets/characterdisplay.cpp
index d88334973..9d409a6bb 100644
--- a/src/gui/widgets/characterdisplay.cpp
+++ b/src/gui/widgets/characterdisplay.cpp
@@ -102,6 +102,8 @@ void CharacterDisplay::update()
mName->setCaption(mCharacter->dummy->getName());
else
mName->setCaption("");
+ const int width = mPlayerBox->getWidth();
+ mName->resizeTo(width, width);
distributeResizedEvent();
}