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

Method jsonFileName

app/src/DataModel/ProjectModel.cpp:731–737  ·  view source on GitHub ↗

* @brief Returns the project filename, or "New Project" when none is loaded. */

Source from the content-addressed store, hash-verified

729 * @brief Returns the project filename, or "New Project" when none is loaded.
730 */
731QString DataModel::ProjectModel::jsonFileName() const
732{
733 if (!m_filePath.isEmpty())
734 return QFileInfo(m_filePath).fileName();
735
736 return tr("New Project");
737}
738
739/**
740 * @brief Returns the workspace folder used for project files.

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.80
fileNameMethod · 0.45

Tested by

no test coverage detected