summaryrefslogtreecommitdiff
path: root/src/gui/windows/charcreatedialog.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/windows/charcreatedialog.cpp
parent322aea1d69a47e8080bcd0552473a5a5d66c5e1a (diff)
downloadmanaverse-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.gz
manaverse-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.bz2
manaverse-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.tar.xz
manaverse-4e6f98cfd788965bd382f1722e2a5d895dda3bc6.zip
Add support for min and max label resize size.
Using it in character selection dialog.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r--src/gui/windows/charcreatedialog.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp
index f6cd22720..a61a6f8fd 100644
--- a/src/gui/windows/charcreatedialog.cpp
+++ b/src/gui/windows/charcreatedialog.cpp
@@ -587,7 +587,7 @@ void CharCreateDialog::updateHair()
}
const ItemInfo &item = ItemDB::get(-mHairStyle);
mHairStyleNameLabel->setCaption(item.getName());
- mHairStyleNameLabel->resizeTo(150);
+ mHairStyleNameLabel->resizeTo(150, 150);
if (ColorDB::getHairSize())
mHairColor %= ColorDB::getHairSize();
@@ -601,8 +601,7 @@ void CharCreateDialog::updateHair()
mHairColor = minHairColor;
}
mHairColorNameLabel->setCaption(ColorDB::getHairColorName(mHairColor));
- mHairColorNameLabel->adjustSize();
- mHairColorNameLabel->resizeTo(150);
+ mHairColorNameLabel->resizeTo(150, 150);
mPlayer->setSprite(Net::getCharServerHandler()->hairSprite(),
mHairStyle * -1, item.getDyeColorsString(mHairColor));
@@ -639,12 +638,12 @@ void CharCreateDialog::updateLook()
if (mRaceNameLabel)
{
mRaceNameLabel->setCaption(item.getName());
- mRaceNameLabel->resizeTo(150);
+ mRaceNameLabel->resizeTo(150, 150);
}
if (mLookNameLabel)
{
mLookNameLabel->setCaption(item.getColorName(mLook));
- mLookNameLabel->resizeTo(150);
+ mLookNameLabel->resizeTo(150, 150);
}
}