|
|
@ -363,15 +363,14 @@ void FriendWidget::search(const QString& searchString, bool hide) |
|
|
|
circleWidget->search(searchString); |
|
|
|
circleWidget->search(searchString); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Remove
|
|
|
|
bool FriendWidget::chatFormIsSet(bool focus) const |
|
|
|
bool FriendWidget::chatFormIsSet(bool focus) const |
|
|
|
{ |
|
|
|
{ |
|
|
|
Friend* f = FriendList::findFriend(friendId); |
|
|
|
|
|
|
|
if (focus) { |
|
|
|
if (focus) { |
|
|
|
ContentDialog::focusFriend(friendId); |
|
|
|
ContentDialog::focusFriend(friendId); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool exist = ContentDialog::friendWidgetExists(friendId); |
|
|
|
return ContentDialog::friendWidgetExists(friendId); |
|
|
|
return exist || f->getChatForm()->isVisible(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void FriendWidget::setChatForm(ContentLayout* contentLayout) |
|
|
|
void FriendWidget::setChatForm(ContentLayout* contentLayout) |
|
|
|