Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/settings/vlanwidget.cpp
Show All 28 Lines | 28 | VlanWidget::VlanWidget(const NetworkManager::Setting::Ptr &setting, QWidget* parent, Qt::WindowFlags f): | |||
---|---|---|---|---|---|
29 | SettingWidget(setting, parent, f), | 29 | SettingWidget(setting, parent, f), | ||
30 | m_ui(new Ui::VlanWidget) | 30 | m_ui(new Ui::VlanWidget) | ||
31 | { | 31 | { | ||
32 | m_ui->setupUi(this); | 32 | m_ui->setupUi(this); | ||
33 | 33 | | |||
34 | fillConnections(); | 34 | fillConnections(); | ||
35 | 35 | | |||
36 | connect(m_ui->ifaceName, &KLineEdit::textChanged, this, &VlanWidget::slotWidgetChanged); | 36 | connect(m_ui->ifaceName, &KLineEdit::textChanged, this, &VlanWidget::slotWidgetChanged); | ||
37 | connect(m_ui->parent, static_cast<void (KComboBox::*)(int)>(&KComboBox::currentIndexChanged), this, &VlanWidget::slotWidgetChanged); | 37 | connect(m_ui->parent, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &VlanWidget::slotWidgetChanged); | ||
38 | connect(m_ui->parent->lineEdit(), &QLineEdit::textChanged, this, &VlanWidget::slotWidgetChanged); | 38 | connect(m_ui->parent->lineEdit(), &QLineEdit::textChanged, this, &VlanWidget::slotWidgetChanged); | ||
39 | 39 | | |||
40 | // Connect for setting check | 40 | // Connect for setting check | ||
41 | watchChangedSetting(); | 41 | watchChangedSetting(); | ||
42 | 42 | | |||
43 | KAcceleratorManager::manage(this); | 43 | KAcceleratorManager::manage(this); | ||
44 | 44 | | |||
45 | if (setting) { | 45 | if (setting) { | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |