MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / ~T_ListView

Method ~T_ListView

ElaWidgetToolsExample/ExamplePage/T_ListView.cpp:43–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected