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

Method pageTitle

app/src/Misc/HelpCenter.cpp:126–132  ·  view source on GitHub ↗

* @brief Returns the title of the currently selected page. */

Source from the content-addressed store, hash-verified

124 * @brief Returns the title of the currently selected page.
125 */
126QString Misc::HelpCenter::pageTitle() const
127{
128 if (m_currentIndex >= 0 && m_currentIndex < m_filteredPages.count())
129 return m_filteredPages.at(m_currentIndex).toMap().value("title").toString();
130
131 return {};
132}
133
134/**
135 * @brief Returns the filtered pages list for the sidebar.

Callers

nothing calls this directly

Calls 2

countMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected