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);
|
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);
|
QVBoxLayout* getFriendLayout(Status s);
|
||||||
|
|
||||||
QList<GenericChatroomWidget*> getAllFriends();
|
QList<GenericChatroomWidget*> getAllFriends();
|
||||||
|
void reDraw();
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
|
@ -888,8 +888,7 @@ void Widget::removeFriend(Friend* f, bool fake)
|
||||||
if (ui->mainHead->layout()->isEmpty())
|
if (ui->mainHead->layout()->isEmpty())
|
||||||
onAddClicked();
|
onAddClicked();
|
||||||
|
|
||||||
contactListWidget->hide();
|
contactListWidget->reDraw();
|
||||||
contactListWidget->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::removeFriend(int friendId)
|
void Widget::removeFriend(int friendId)
|
||||||
|
@ -1039,8 +1038,7 @@ void Widget::removeGroup(Group* g, bool fake)
|
||||||
if (ui->mainHead->layout()->isEmpty())
|
if (ui->mainHead->layout()->isEmpty())
|
||||||
onAddClicked();
|
onAddClicked();
|
||||||
|
|
||||||
contactListWidget->hide();
|
contactListWidget->reDraw();
|
||||||
contactListWidget->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::removeGroup(int groupId)
|
void Widget::removeGroup(int groupId)
|
||||||
|
@ -1444,8 +1442,7 @@ void Widget::searchContacts()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
contactListWidget->hide();
|
contactListWidget->reDraw();
|
||||||
contactListWidget->show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::hideFriends(QString searchString, Status status, bool hideAll)
|
void Widget::hideFriends(QString searchString, Status status, bool hideAll)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user