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:
parent
eaf44c45d5
commit
42e0770991
|
@ -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);
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
QLayout* getLayoutOffline() const;
|
||||
|
||||
private:
|
||||
void init();
|
||||
QLayout* getFriendLayout(Status s) const;
|
||||
|
||||
GenericChatItemLayout friendOnlineLayout;
|
||||
|
|
Loading…
Reference in New Issue
Block a user