diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-28 23:08:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-28 23:08:57 +0300 |
commit | f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76 (patch) | |
tree | 3c1b972c6fd0fb5316ab49ed773404f783c25250 /src | |
parent | 25f7a598965384801dfd11f3abb8dbeb0df3f078 (diff) | |
download | manaplus-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.gz manaplus-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.bz2 manaplus-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.tar.xz manaplus-f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76.zip |
move bools in avatarlistbox.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 4 | ||||
-rw-r--r-- | src/gui/widgets/avatarlistbox.h | 2 |
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; |