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

Method build

gui/src/tutorialchapter.cpp:35–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33TutorialChapter::~TutorialChapter() {}
34
35TutorialChapter *TutorialChapter::build(const QList<QWidget *> &subjects, const QString &description,
36 QWidget *mainSubject, int x_offset, int y_offset, HoverPosition anchor,
37 HoverPosition content, QObject *parent)
38{
39 TutorialChapter *ch = new TutorialChapter(parent);
40 for(QWidget *subject : subjects) {
41 ch->addSubject(subject);
42 }
43 ch->setDescription(description);
44 ch->setMainSubject(mainSubject);
45 ch->setXOffset(x_offset);
46 ch->setYOffset(y_offset);
47 ch->setAnchor(anchor);
48 ch->setContent(content);
49 return ch;
50}
51
52void TutorialChapter::addSubject(QWidget *s) { subjects.append(s); }
53

Callers

nothing calls this directly

Calls 7

addSubjectMethod · 0.80
setMainSubjectMethod · 0.80
setXOffsetMethod · 0.80
setYOffsetMethod · 0.80
setDescriptionMethod · 0.45
setAnchorMethod · 0.45
setContentMethod · 0.45

Tested by

no test coverage detected