1
0
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:
tux3 2015-06-04 21:25:21 +02:00
commit 039575a775
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
3 changed files with 12 additions and 7 deletions

View File

@ -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
}

View File

@ -34,7 +34,7 @@ public:
QVBoxLayout* getFriendLayout(Status s);
QList<GenericChatroomWidget*> getAllFriends();
void reDraw();
signals:
public slots:

View File

@ -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)