void SettingsWidget::addSettingsPage(ISettingsPage *page) { QWidget * widget = page->createWidget(); widget->setParent(this); m_extraPages.append(ExtraPage(page, widget)); add(page->name(), widget); }
void EditGroupWidget::addEditPage(IEditGroupPage* page) { QWidget* widget = page->createWidget(); widget->setParent(this); m_extraPages.append(ExtraPage(page, widget)); addPage(page->name(), page->icon(), widget); }