1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fixed FriendListLayout constructor delegation fix

This commit is contained in:
bitok 2015-10-08 22:53:46 +03:00
parent eaf44c45d5
commit 42e0770991
2 changed files with 13 additions and 6 deletions

View File

@ -20,6 +20,18 @@
#include <cassert>
FriendListLayout::FriendListLayout()
: QVBoxLayout()
{
init();
}
FriendListLayout::FriendListLayout(QWidget* parent)
: QVBoxLayout(parent)
{
init();
}
void FriendListLayout::init()
{
setSpacing(0);
setMargin(0);
@ -34,12 +46,6 @@ FriendListLayout::FriendListLayout()
addLayout(friendOfflineLayout.getLayout());
}
FriendListLayout::FriendListLayout(QWidget* parent)
: QVBoxLayout(parent)
{
FriendListLayout();
}
void FriendListLayout::addFriendWidget(FriendWidget* w, Status s)
{
friendOfflineLayout.removeSortedWidget(w);

View File

@ -43,6 +43,7 @@ public:
QLayout* getLayoutOffline() const;
private:
void init();
QLayout* getFriendLayout(Status s) const;
GenericChatItemLayout friendOnlineLayout;