| 41 | auto* resultText = new ElaText("选择结果:尚未选择", this); |
| 42 | connect(searchEdit, &ElaLineEdit::textChanged, filterModel, &QSortFilterProxyModel::setFilterFixedString); |
| 43 | connect(multiCheckBox, &ElaCheckBox::toggled, this, [this](bool checked) { |
| 44 | _listView->clearSelection(); |
| 45 | _listView->setSelectionMode(checked ? QAbstractItemView::ExtendedSelection : QAbstractItemView::SingleSelection); |
| 46 | }); |
| 47 | connect(alternatingCheckBox, &ElaCheckBox::toggled, _listView, &ElaListView::setAlternatingRowColors); |
| 48 | connect(_listView->selectionModel(), &QItemSelectionModel::selectionChanged, this, [this, resultText]() { |
nothing calls this directly
no outgoing calls
no test coverage detected