Use aggregate and QList

Took 8 minutes

Took 6 seconds
This commit is contained in:
Lukas Brübach 2026-05-24 01:37:55 +02:00
parent 96b331746b
commit 0155d2b2bc
2 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ HomeWidget::HomeWidget(QWidget *parent, TabSupervisor *_tabSupervisor)
}
auto sequence = TutorialSequence();
sequence.addStep({connectButton, "Connect to a server to play here!"});
auto vdeStep = TutorialStep(visualDeckEditorButton, "Create a new deck from cards in the database here!");
auto vdeStep = TutorialStep{visualDeckEditorButton, "Create a new deck from cards in the database here!"};
vdeStep.requiresInteraction = true;
vdeStep.allowClickThrough = true;
vdeStep.validationHint = "Open the deck editor to try it out!";

View file

@ -3,8 +3,8 @@
#include "tutorial_overlay.h"
#include <QList>
#include <QObject>
#include <QVector>
#include <functional>
enum class ValidationTiming
@ -43,7 +43,7 @@ struct TutorialStep
struct TutorialSequence
{
QString name;
QVector<TutorialStep> steps;
QList<TutorialStep> steps;
void addStep(const TutorialStep &step)
{