MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setCurrentIndex

Method setCurrentIndex

app/src/Misc/HelpCenter.cpp:157–170  ·  view source on GitHub ↗

* @brief Selects a page by index and triggers content fetching. */

Source from the content-addressed store, hash-verified

155 * @brief Selects a page by index and triggers content fetching.
156 */
157void Misc::HelpCenter::setCurrentIndex(int index)
158{
159 if (m_currentIndex == index)
160 return;
161
162 m_currentIndex = index;
163 Q_EMIT currentIndexChanged();
164
165 m_pageContent.clear();
166 Q_EMIT pageContentChanged();
167
168 if (index >= 0 && index < m_filteredPages.count())
169 fetchPage(index);
170}
171
172/**
173 * @brief Sets the search filter and re-applies filtering to the pages list.

Callers 15

proceedCompleterEndMethod · 0.80
displayDialogMethod · 0.80
onClearMethod · 0.80
onLanguageChangedMethod · 0.80
buildTemplatesMethod · 0.80
wireGroupSignalsMethod · 0.80
wireDatasetSignalsMethod · 0.80
wireActionSignalsMethod · 0.80
wireSourceSignalsMethod · 0.80

Calls 2

clearMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected