summaryrefslogtreecommitdiff
path: root/src/gui/windows/charselectdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-25 06:12:48 +0300
commitf55baadfeb6245899497cd472f65f23e905481b9 (patch)
treed5d3dfa758d9d46cf91bc81e0190ee67c7bc48e7 /src/gui/windows/charselectdialog.cpp
parent52039744fa2e5e116548e5236cd8ba5f5d81702a (diff)
downloadmanaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.gz
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.bz2
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.tar.xz
manaverse-f55baadfeb6245899497cd472f65f23e905481b9.zip
Remove default parameters from containerplacer.
Diffstat (limited to 'src/gui/windows/charselectdialog.cpp')
-rw-r--r--src/gui/windows/charselectdialog.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp
index a8da297cb..b4fa77506 100644
--- a/src/gui/windows/charselectdialog.cpp
+++ b/src/gui/windows/charselectdialog.cpp
@@ -94,15 +94,15 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
setCloseButton(true);
setFocusable(true);
- ContainerPlacer placer;
+ ContainerPlacer placer(nullptr, nullptr);
placer = getPlacer(0, 0);
- placer(0, 0, mSwitchLoginButton);
+ placer(0, 0, mSwitchLoginButton, 1, 1);
int n = 1;
- placer(n, 0, mChangePasswordButton);
+ placer(n, 0, mChangePasswordButton, 1, 1);
n ++;
- placer(n, 0, mDeleteButton);
+ placer(n, 0, mDeleteButton, 1, 1);
n ++;
#ifdef TMWA_SUPPORT
if (Net::getNetworkType() != ServerType::TMWATHENA)
@@ -113,10 +113,10 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
_("Rename"),
"rename",
this);
- placer(n, 0, mRenameButton);
+ placer(n, 0, mRenameButton, 1, 1);
n ++;
}
- placer(n, 0, mInfoButton);
+ placer(n, 0, mInfoButton, 1, 1);
n ++;
for (int i = 0; i < CAST_S32(mLoginData->characterSlots); i++)
@@ -126,13 +126,13 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
mCharacterEntries.push_back(character);
}
- placer(0, 2, mPlayButton);
+ placer(0, 2, mPlayButton, 1, 1);
if (!mSmallScreen)
{
mCharacterView = new CharacterViewNormal(
this, &mCharacterEntries, mPadding);
- placer(0, 1, mCharacterView, 10);
+ placer(0, 1, mCharacterView, 10, 1);
int sz = 410 + 2 * mPadding;
if (config.getIntValue("fontSize") > 18)
sz = 500 + 2 * mPadding;
@@ -151,7 +151,7 @@ CharSelectDialog::CharSelectDialog(LoginData &data) :
this, &mCharacterEntries, mPadding);
mCharacterView->setWidth(mainGraphics->getWidth()
- 2 * getPadding());
- placer(0, 1, mCharacterView, 10);
+ placer(0, 1, mCharacterView, 10, 1);
reflowLayout();
}
addKeyListener(this);