MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / setSelected

Method setSelected

src/pluginlistview.cpp:187–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void PluginListView::setSelected(const QModelIndex& current,
188 const QModelIndexList& selected)
189{
190 setCurrentIndex(indexModelToView(current));
191 for (auto idx : selected) {
192 selectionModel()->select(indexModelToView(idx),
193 QItemSelectionModel::Select | QItemSelectionModel::Rows);
194 }
195}
196
197void PluginListView::setup(OrganizerCore& core, MainWindow* mw, Ui::MainWindow* mwui)
198{

Callers

nothing calls this directly

Calls 2

indexModelToViewFunction · 0.85
selectMethod · 0.45

Tested by

no test coverage detected