mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-17 04:27:45 -07:00
[ReplayManager] Refactor to send replayed events through signal (#6979)
* [ReplayManager] Refactor to send replayed events through signal * remove blank * pass by const auto ref
This commit is contained in:
parent
23da49ee5b
commit
20cdcdb382
3 changed files with 7 additions and 2 deletions
|
|
@ -1169,6 +1169,11 @@ void TabGame::createReplayDock(GameReplay *replay)
|
|||
QDockWidget::DockWidgetMovable);
|
||||
replayDock->setWidget(replayManager);
|
||||
replayDock->setFloating(false);
|
||||
|
||||
connect(replayManager, &ReplayManager::eventReplayed, game->getGameEventHandler(),
|
||||
[this](const auto &event, auto options) {
|
||||
game->getGameEventHandler()->processGameEventContainer(event, nullptr, options);
|
||||
});
|
||||
}
|
||||
|
||||
void TabGame::createDeckViewContainerWidget(bool bReplay)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue