| 84 | } |
| 85 | |
| 86 | MenuSectionCollapseWidget *PkgZipWidget::createSection(QString title, QString description, QWidget *parent) |
| 87 | { |
| 88 | MenuSectionCollapseWidget *section = new MenuSectionCollapseWidget(title, MenuCollapseSection::MHCW_NONE, |
| 89 | MenuCollapseSection::MHW_INFOWIDGET, parent); |
| 90 | QMargins leftMargin(10, 0, 0, 0); |
| 91 | InfoHeaderWidget *infoHeader = getInfoHeader(section->collapseSection()); |
| 92 | if(infoHeader) { |
| 93 | section->collapseSection()->header()->setCheckable(false); |
| 94 | infoHeader->setDescription(description); |
| 95 | leftMargin.setLeft(infoHeader->infoBtn()->sizeHint().width()); |
| 96 | } |
| 97 | section->contentLayout()->setContentsMargins(leftMargin); |
| 98 | |
| 99 | return section; |
| 100 | } |
| 101 | |
| 102 | InfoHeaderWidget *PkgZipWidget::getInfoHeader(MenuCollapseSection *section) |
| 103 | { |
nothing calls this directly
no test coverage detected