From f5e9f2eddf051bf814c6cc59dd1ace32d0b97a76 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Jul 2013 23:08:57 +0300 Subject: move bools in avatarlistbox. --- src/gui/widgets/avatarlistbox.cpp | 4 ++-- src/gui/widgets/avatarlistbox.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2