mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Methods renamed
existsFriendWidget -> friendWidgetExists existsGroupWidget -> groupWidgetExists
This commit is contained in:
parent
4afd13839a
commit
8634e26694
|
@ -414,12 +414,12 @@ ContentDialog* ContentDialog::current()
|
|||
return currentDialog;
|
||||
}
|
||||
|
||||
bool ContentDialog::existsFriendWidget(int friendId)
|
||||
bool ContentDialog::friendWidgetExists(int friendId)
|
||||
{
|
||||
return existsWidget(friendId, friendList);
|
||||
}
|
||||
|
||||
bool ContentDialog::existsGroupWidget(int groupId)
|
||||
bool ContentDialog::groupWidgetExists(int groupId)
|
||||
{
|
||||
return existsWidget(groupId, groupList);
|
||||
}
|
||||
|
|
|
@ -67,8 +67,8 @@ public:
|
|||
void onVideoHide();
|
||||
|
||||
static ContentDialog* current();
|
||||
static bool existsFriendWidget(int friendId);
|
||||
static bool existsGroupWidget(int groupId);
|
||||
static bool friendWidgetExists(int friendId);
|
||||
static bool groupWidgetExists(int groupId);
|
||||
static void focusFriend(int friendId);
|
||||
static void focusGroup(int groupId);
|
||||
static void updateFriendStatus(int friendId);
|
||||
|
|
|
@ -368,7 +368,7 @@ bool FriendWidget::chatFormIsSet(bool focus) const
|
|||
ContentDialog::focusFriend(friendId);
|
||||
}
|
||||
|
||||
bool exist = ContentDialog::existsFriendWidget(friendId);
|
||||
bool exist = ContentDialog::friendWidgetExists(friendId);
|
||||
return exist || f->getChatForm()->isVisible();
|
||||
}
|
||||
|
||||
|
|
|
@ -205,7 +205,7 @@ bool GroupWidget::chatFormIsSet(bool focus) const
|
|||
ContentDialog::focusGroup(groupId);
|
||||
}
|
||||
|
||||
bool exist = ContentDialog::existsGroupWidget(groupId);
|
||||
bool exist = ContentDialog::groupWidgetExists(groupId);
|
||||
return exist || g->getChatForm()->isVisible();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user