#include "ethernetsettings.h" #include "ui_genericsettings.h" EthernetSettings::EthernetSettings(QString title, QWidget *parent) : QDialog(parent), ui(new Ui::GenericSettings) { ui->setupUi(this); this->setWindowTitle(title); ui->connectionNameLineEdit->setText(title); generalSettingsTab = new GeneralSettingsTab(); ethernetSettingsTab = new EthernetSettingsTab(); ui->tabWidget->addTab(generalSettingsTab, "General"); ui->tabWidget->addTab(ethernetSettingsTab, "Ethernet"); } EthernetSettings::~EthernetSettings() { delete ui; delete generalSettingsTab; delete ethernetSettingsTab; }