Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/widgets/bssidcombobox.cpp
Show All 32 Lines | |||||
33 | 33 | | |||
34 | BssidComboBox::BssidComboBox(QWidget *parent) : | 34 | BssidComboBox::BssidComboBox(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, &BssidComboBox::editTextChanged, this, &BssidComboBox::slotEditTextChanged); | 40 | connect(this, &BssidComboBox::editTextChanged, this, &BssidComboBox::slotEditTextChanged); | ||
41 | connect(this, static_cast<void (BssidComboBox::*)(int)>(&BssidComboBox::activated), this, &BssidComboBox::slotCurrentIndexChanged); | 41 | connect(this, QOverload<int>::of(&BssidComboBox::activated), this, &BssidComboBox::slotCurrentIndexChanged); | ||
42 | } | 42 | } | ||
43 | 43 | | |||
44 | QString BssidComboBox::bssid() const | 44 | QString BssidComboBox::bssid() const | ||
45 | { | 45 | { | ||
46 | QString result; | 46 | QString result; | ||
47 | if (!m_dirty) | 47 | if (!m_dirty) | ||
48 | result = itemData(currentIndex()).toString(); | 48 | result = itemData(currentIndex()).toString(); | ||
49 | else | 49 | else | ||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |