1
0
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:
tux3 2015-10-09 09:42:40 +02:00
commit b0647b0b4b
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
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;