1
0
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:
Diadlo 2017-05-07 21:04:55 +03:00
parent 4afd13839a
commit 8634e26694
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
4 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

@ -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();
}

View File

@ -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();
}