mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
dd60edb3d7
commit
4d15aed53f
|
@ -81,14 +81,14 @@ void FriendListLayout::moveFriendWidgets(FriendListWidget* listWidget)
|
|||
|
||||
FriendWidget* friendWidget = qobject_cast<FriendWidget*>(getWidget);
|
||||
Friend* f = FriendList::findFriend(friendWidget->friendId);
|
||||
listWidget->moveWidget(friendWidget, f->getStatus(), false);
|
||||
listWidget->moveWidget(friendWidget, f->getStatus(), true);
|
||||
}
|
||||
while (!friendOfflineLayout.getLayout()->isEmpty()) {
|
||||
QWidget* getWidget = friendOfflineLayout.getLayout()->takeAt(0)->widget();
|
||||
|
||||
FriendWidget* friendWidget = qobject_cast<FriendWidget*>(getWidget);
|
||||
Friend* f = FriendList::findFriend(friendWidget->friendId);
|
||||
listWidget->moveWidget(friendWidget, f->getStatus(), false);
|
||||
listWidget->moveWidget(friendWidget, f->getStatus(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user