diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-05 20:26:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-05 20:31:40 +0300 |
commit | 4e6f98cfd788965bd382f1722e2a5d895dda3bc6 (patch) | |
tree | 12b6195bbc66b49389f65d8c4831cd259e3429bc /src/gui/widgets/characterdisplay.cpp | |
parent | 322aea1d69a47e8080bcd0552473a5a5d66c5e1a (diff) | |
download | manaplus-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.gz manaplus-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.bz2 manaplus-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.xz manaplus-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.cpp | 2 |
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(); } |