summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-28 23:08:57 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-28 23:08:57 +0300
commitf5e9f2eddf051bf814c6cc59dd1ace32d0b97a76 (patch)
tree3c1b972c6fd0fb5316ab49ed773404f783c25250 /src/gui
parent25f7a598965384801dfd11f3abb8dbeb0df3f078 (diff)
downloadmanaverse-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.gz
manaverse-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.bz2
manaverse-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.xz
manaverse-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.zip
move bools in avatarlistbox.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/avatarlistbox.cpp4
-rw-r--r--src/gui/widgets/avatarlistbox.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp
index 3792906d2..1bb3ca235 100644
--- a/src/gui/widgets/avatarlistbox.cpp
+++ b/src/gui/widgets/avatarlistbox.cpp
@@ -46,9 +46,9 @@ Image *AvatarListBox::offlineIcon = nullptr;
AvatarListBox::AvatarListBox(const Widget2 *const widget,
AvatarListModel *const model) :
ListBox(widget, model, "avatarlistbox.xml"),
+ mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0),
mShowGender(config.getBoolValue("showgender")),
- mShowLevel(config.getBoolValue("showlevel")),
- mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0)
+ mShowLevel(config.getBoolValue("showlevel"))
{
instances++;
diff --git a/src/gui/widgets/avatarlistbox.h b/src/gui/widgets/avatarlistbox.h
index 36950f3ab..12862942a 100644
--- a/src/gui/widgets/avatarlistbox.h
+++ b/src/gui/widgets/avatarlistbox.h
@@ -62,9 +62,9 @@ public:
void optionChanged(const std::string &value) override;
private:
+ int mImagePadding;
bool mShowGender;
bool mShowLevel;
- int mImagePadding;
static int instances;
static Image *onlineIcon;