mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr2361'
This commit is contained in:
commit
b0647b0b4b
|
@ -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