* @brief Returns the localized label of the active mode. */
| 1074 | * @brief Returns the localized label of the active mode. |
| 1075 | */ |
| 1076 | QString 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. |
no test coverage detected