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

Method selectedIcon

app/src/DataModel/ProjectEditor.cpp:814–821  ·  view source on GitHub ↗

* @brief Returns the icon path of the currently selected tree item. */

Source from the content-addressed store, hash-verified

812 * @brief Returns the icon path of the currently selected tree item.
813 */
814QString DataModel::ProjectEditor::selectedIcon() const
815{
816 if (!m_selectionModel || !m_treeModel)
817 return "";
818
819 const auto index = m_selectionModel->currentIndex();
820 return m_treeModel->data(index, TreeViewIcon).toString();
821}
822
823/**
824 * @brief Returns the icon path of the currently selected action.

Callers

nothing calls this directly

Calls 2

currentIndexMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected