diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:59:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:59:54 +0300 |
commit | f96f9d5e58fb181d6f2789562471d015d38f4a4d (patch) | |
tree | 3087fae6addb9c1d958de6ffd818ced11fa27f66 /src/gui/windows/pincodedialog.cpp | |
parent | ba123462244ed8e28c87ab43cbefe360d23ff8b2 (diff) | |
download | manaverse-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.gz manaverse-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.bz2 manaverse-f96f9d5e58fb181d6f2789562471d015d38f4a4d.tar.xz manaverse-f96f9d5e58fb181d6f2789562471d015d38f4a4d.zip |
Add own skin for pincode keyboard buttons.
Also resize pincode dialog if pincode control too big.
Diffstat (limited to 'src/gui/windows/pincodedialog.cpp')
-rw-r--r-- | src/gui/windows/pincodedialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/pincodedialog.cpp b/src/gui/windows/pincodedialog.cpp index 223ad69c0..0e79774ac 100644 --- a/src/gui/windows/pincodedialog.cpp +++ b/src/gui/windows/pincodedialog.cpp @@ -75,6 +75,8 @@ PincodeDialog::PincodeDialog(const std::string &restrict title, int width = getFont()->getWidth(title); if (width < textLabel->getWidth()) width = textLabel->getWidth(); + if (width < mPincode->getWidth()) + width = mPincode->getWidth(); reflowLayout(CAST_S32(width + 20), 0); updateButtons(); } |