MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / selectSession

Method selectSession

src/plugins/core/session/sessionlistview.cpp:84–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void SessionListView::selectSession(const QString &session)
85{
86 int row = model.rowOfSession(session);
87 selectionModel()->setCurrentIndex(model.index(row, 0),
88 QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
89}
90
91void SessionListView::selectActiveSession()
92{

Callers

nothing calls this directly

Calls 3

rowOfSessionMethod · 0.80
setCurrentIndexMethod · 0.45
indexMethod · 0.45

Tested by

no test coverage detected