MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / addChapter

Method addChapter

gui/src/tutorialoverlay.cpp:42–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40TutorialOverlay::~TutorialOverlay() { qDebug(CAT_TUTORIALOVERLAY) << "dtor"; }
41
42TutorialChapter *TutorialOverlay::addChapter(const QList<QWidget *> &subjects, const QString &description,
43 QWidget *mainWidget, int x_offset, int y_offset, HoverPosition anchor,
44 HoverPosition content)
45{
46 // in case TutorialOverlay is used without TutorialBuilder
47 if(!mainWidget) {
48 mainWidget = subjects[0];
49 }
50 TutorialChapter *ch =
51 TutorialChapter::build(subjects, description, mainWidget, x_offset, y_offset, anchor, content, this);
52 chapter.append(ch);
53 ch->setMainSubject(mainWidget);
54 return ch;
55}
56
57TutorialChapter *TutorialOverlay::addChapter(QWidget *subject, QString description)
58{

Callers 2

startTutorialMethod · 0.80
collectChaptersMethod · 0.80

Calls 2

appendMethod · 0.80
setMainSubjectMethod · 0.80

Tested by 1

startTutorialMethod · 0.64