mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 10:05:10 -07:00
Extract tutorial sequence setup from TabDeckEditorVisual constructor
This commit is contained in:
parent
f70eb2226a
commit
6929757095
2 changed files with 9 additions and 0 deletions
|
|
@ -60,7 +60,11 @@ TabDeckEditorVisual::TabDeckEditorVisual(TabSupervisor *_tabSupervisor) : Abstra
|
||||||
filterDockWidget->setHidden(true);
|
filterDockWidget->setHidden(true);
|
||||||
cardDatabaseDockWidget->setHidden(true);
|
cardDatabaseDockWidget->setHidden(true);
|
||||||
tutorialController = new TutorialController(this);
|
tutorialController = new TutorialController(this);
|
||||||
|
createTutorialSequences();
|
||||||
|
}
|
||||||
|
|
||||||
|
void TabDeckEditorVisual::createTutorialSequences()
|
||||||
|
{
|
||||||
auto deckDockSequence = deckDockWidget->generateTutorialSequence();
|
auto deckDockSequence = deckDockWidget->generateTutorialSequence();
|
||||||
|
|
||||||
tutorialController->addSequence(deckDockSequence);
|
tutorialController->addSequence(deckDockSequence);
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,11 @@ private:
|
||||||
TutorialController *tutorialController = nullptr;
|
TutorialController *tutorialController = nullptr;
|
||||||
bool tutorialStarted = false;
|
bool tutorialStarted = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Build and register all tutorial sequences for this tab.
|
||||||
|
*/
|
||||||
|
void createTutorialSequences();
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
void showEvent(QShowEvent *ev) override;
|
void showEvent(QShowEvent *ev) override;
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue