mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
Always set TabSupervisor as parent in Tab subclasses (#5449)
* refactor closeTab * always set tab parent to tabSupervisor * set tabSupervisor parent * use close instead of deleteLater * be more clear about overloads
This commit is contained in:
parent
3a4ec1062b
commit
a6fc88c79a
18 changed files with 25 additions and 41 deletions
|
|
@ -18,11 +18,8 @@
|
|||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
TabUserLists::TabUserLists(TabSupervisor *_tabSupervisor,
|
||||
AbstractClient *_client,
|
||||
const ServerInfo_User &userInfo,
|
||||
QWidget *parent)
|
||||
: Tab(_tabSupervisor, parent), client(_client)
|
||||
TabUserLists::TabUserLists(TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User &userInfo)
|
||||
: Tab(_tabSupervisor), client(_client)
|
||||
{
|
||||
allUsersList = new UserList(_tabSupervisor, client, UserList::AllUsersList);
|
||||
buddyList = new UserList(_tabSupervisor, client, UserList::BuddyList);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue