mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
new code
This commit is contained in:
parent
6c93b1e9b7
commit
0d4717f40b
28 changed files with 591 additions and 375 deletions
|
|
@ -104,6 +104,8 @@ void TabSupervisor::gameJoined(Event_GameJoined *event)
|
|||
TabGame *tab = new TabGame(client, event->getGameId());
|
||||
addTab(tab, tr("Game %1").arg(event->getGameId()));
|
||||
gameTabs.insert(event->getGameId(), tab);
|
||||
tab->processGameJoinedEvent(event);
|
||||
setCurrentWidget(tab);
|
||||
}
|
||||
|
||||
void TabSupervisor::addChatChannelTab(const QString &channelName)
|
||||
|
|
@ -111,6 +113,7 @@ void TabSupervisor::addChatChannelTab(const QString &channelName)
|
|||
TabChatChannel *tab = new TabChatChannel(client, channelName);
|
||||
addTab(tab, channelName);
|
||||
chatChannelTabs.insert(channelName, tab);
|
||||
setCurrentWidget(tab);
|
||||
}
|
||||
|
||||
void TabSupervisor::processChatEvent(ChatEvent *event)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue