MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / setSelectedInstanceById

Method setSelectedInstanceById

launcher/ui/MainWindow.cpp:1122–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122void MainWindow::setSelectedInstanceById(const QString& id)
1123{
1124 if (id.isNull())
1125 return;
1126 const QModelIndex index = APPLICATION->instances()->getInstanceIndexById(id);
1127 if (index.isValid()) {
1128 QModelIndex selectionIndex = proxymodel->mapFromSource(index);
1129 view->selectionModel()->setCurrentIndex(selectionIndex, QItemSelectionModel::ClearAndSelect);
1130 updateStatusCenter();
1131 }
1132}
1133
1134void MainWindow::on_actionChangeInstGroup_triggered()
1135{

Callers

nothing calls this directly

Calls 4

getInstanceIndexByIdMethod · 0.80
instancesMethod · 0.80
mapFromSourceMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected