| 33 | TutorialChapter::~TutorialChapter() {} |
| 34 | |
| 35 | TutorialChapter *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 | |
| 52 | void TutorialChapter::addSubject(QWidget *s) { subjects.append(s); } |
| 53 |
nothing calls this directly
no test coverage detected