mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge branch 'pr1769'
This commit is contained in:
commit
039575a775
|
@ -130,3 +130,11 @@ void FriendListWidget::moveWidget(QWidget *w, Status s)
|
|||
}
|
||||
l->addWidget(w);
|
||||
}
|
||||
|
||||
// update widget after add/delete/hide/show
|
||||
void FriendListWidget::reDraw()
|
||||
{
|
||||
hide();
|
||||
show();
|
||||
resize(QSize()); //lifehack
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
QVBoxLayout* getFriendLayout(Status s);
|
||||
|
||||
QList<GenericChatroomWidget*> getAllFriends();
|
||||
|
||||
void reDraw();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
|
|
|
@ -888,8 +888,7 @@ void Widget::removeFriend(Friend* f, bool fake)
|
|||
if (ui->mainHead->layout()->isEmpty())
|
||||
onAddClicked();
|
||||
|
||||
contactListWidget->hide();
|
||||
contactListWidget->show();
|
||||
contactListWidget->reDraw();
|
||||
}
|
||||
|
||||
void Widget::removeFriend(int friendId)
|
||||
|
@ -1039,8 +1038,7 @@ void Widget::removeGroup(Group* g, bool fake)
|
|||
if (ui->mainHead->layout()->isEmpty())
|
||||
onAddClicked();
|
||||
|
||||
contactListWidget->hide();
|
||||
contactListWidget->show();
|
||||
contactListWidget->reDraw();
|
||||
}
|
||||
|
||||
void Widget::removeGroup(int groupId)
|
||||
|
@ -1444,8 +1442,7 @@ void Widget::searchContacts()
|
|||
return;
|
||||
}
|
||||
|
||||
contactListWidget->hide();
|
||||
contactListWidget->show();
|
||||
contactListWidget->reDraw();
|
||||
}
|
||||
|
||||
void Widget::hideFriends(QString searchString, Status status, bool hideAll)
|
||||
|
|
Loading…
Reference in New Issue
Block a user