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

Method modeLabel

app/src/MQTT/Publisher.cpp:1076–1083  ·  view source on GitHub ↗

* @brief Returns the localized label of the active mode. */

Source from the content-addressed store, hash-verified

1074 * @brief Returns the localized label of the active mode.
1075 */
1076QString MQTT::Publisher::modeLabel() const
1077{
1078 const auto& list = modes();
1079 if (m_mode >= 0 && m_mode < list.size())
1080 return list.at(m_mode);
1081
1082 return QString();
1083}
1084
1085/**
1086 * @brief Returns "host:port" for compact display in the status popup.

Callers 2

publisherGetConfigMethod · 0.80
publisherGetStatusMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected