* @brief Returns the icon path of the currently selected tree item. */
| 812 | * @brief Returns the icon path of the currently selected tree item. |
| 813 | */ |
| 814 | QString 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. |
nothing calls this directly
no test coverage detected