Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/settings/bondwidget.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Line(s) | 45 | { | |||
---|---|---|---|---|---|
72 | 72 | | |||
73 | // bonds | 73 | // bonds | ||
74 | populateBonds(); | 74 | populateBonds(); | ||
75 | connect(m_ui->bonds, &QListWidget::currentItemChanged, this, &BondWidget::currentBondChanged); | 75 | connect(m_ui->bonds, &QListWidget::currentItemChanged, this, &BondWidget::currentBondChanged); | ||
76 | connect(m_ui->bonds, &QListWidget::itemDoubleClicked, this, &BondWidget::editBond); | 76 | connect(m_ui->bonds, &QListWidget::itemDoubleClicked, this, &BondWidget::editBond); | ||
77 | 77 | | |||
78 | connect(m_ui->ifaceName, &KLineEdit::textChanged, this, &BondWidget::slotWidgetChanged); | 78 | connect(m_ui->ifaceName, &KLineEdit::textChanged, this, &BondWidget::slotWidgetChanged); | ||
79 | connect(m_ui->arpTargets, &KLineEdit::textChanged, this, &BondWidget::slotWidgetChanged); | 79 | connect(m_ui->arpTargets, &KLineEdit::textChanged, this, &BondWidget::slotWidgetChanged); | ||
80 | #if QT_VERSION < QT_VERSION_CHECK(5, 15, 0) | ||||
80 | connect(m_ui->linkMonitoring, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &BondWidget::slotWidgetChanged); | 81 | connect(m_ui->linkMonitoring, QOverload<int>::of(&KComboBox::currentIndexChanged), this, &BondWidget::slotWidgetChanged); | ||
82 | #else | ||||
83 | connect(m_ui->linkMonitoring, QOverload<int, const QString &>::of(&KComboBox::currentIndexChanged), this, &BondWidget::slotWidgetChanged); | ||||
84 | #endif | ||||
81 | 85 | | |||
82 | // Connect for setting check | 86 | // Connect for setting check | ||
83 | watchChangedSetting(); | 87 | watchChangedSetting(); | ||
84 | 88 | | |||
85 | KAcceleratorManager::manage(this); | 89 | KAcceleratorManager::manage(this); | ||
86 | KAcceleratorManager::manage(m_menu); | 90 | KAcceleratorManager::manage(m_menu); | ||
87 | 91 | | |||
88 | if (setting) { | 92 | if (setting) { | ||
▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines |