Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/widgets/hwaddrcombobox.cpp
Show All 32 Lines | |||||
33 | 33 | | |||
34 | HwAddrComboBox::HwAddrComboBox(QWidget *parent) : | 34 | HwAddrComboBox::HwAddrComboBox(QWidget *parent) : | ||
35 | QComboBox(parent), m_dirty(false) | 35 | QComboBox(parent), m_dirty(false) | ||
36 | { | 36 | { | ||
37 | setEditable(true); | 37 | setEditable(true); | ||
38 | setInsertPolicy(QComboBox::NoInsert); | 38 | setInsertPolicy(QComboBox::NoInsert); | ||
39 | 39 | | |||
40 | connect(this, &HwAddrComboBox::editTextChanged, this, &HwAddrComboBox::slotEditTextChanged); | 40 | connect(this, &HwAddrComboBox::editTextChanged, this, &HwAddrComboBox::slotEditTextChanged); | ||
41 | connect(this, static_cast<void (HwAddrComboBox::*)(int)>(&HwAddrComboBox::currentIndexChanged), this, &HwAddrComboBox::slotCurrentIndexChanged); | 41 | connect(this, QOverload<int>::of(&HwAddrComboBox::currentIndexChanged), this, &HwAddrComboBox::slotCurrentIndexChanged); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | bool HwAddrComboBox::isValid() const | 44 | bool HwAddrComboBox::isValid() const | ||
45 | { | 45 | { | ||
46 | if (hwAddress().isEmpty()) { | 46 | if (hwAddress().isEmpty()) { | ||
47 | return true; | 47 | return true; | ||
48 | } | 48 | } | ||
49 | 49 | | |||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |