moved the user list context menu to a separate class to avoid redundant code

This commit is contained in:
Max-Wilhelm Bruker 2012-04-07 23:05:45 +02:00
parent ae19d3dc4b
commit f9e0b6fe9e
10 changed files with 251 additions and 250 deletions

View file

@ -113,6 +113,11 @@ void TabSupervisor::retranslateUi()
}
}
AbstractClient *TabSupervisor::getClient() const
{
return localClients.isEmpty() ? client : localClients.first();
}
int TabSupervisor::myAddTab(Tab *tab)
{
connect(tab, SIGNAL(userEvent(bool)), this, SLOT(tabUserEvent(bool)));
@ -428,8 +433,3 @@ bool TabSupervisor::getAdminLocked() const
return true;
return tabAdmin->getLocked();
}
int TabSupervisor::getUserLevel() const
{
return userInfo->user_level();
}