MCPcopy Create free account
hub / github.com/KDE/labplot / willTopicChanged

Method willTopicChanged

src/frontend/dockwidgets/LiveDataDock.cpp:578–583  ·  view source on GitHub ↗

! *\brief called when will topic combobox's current item is changed in the will settings widget * sets the will topic for the m_mqttClient * * \param topic the current text of cbWillTopic */

Source from the content-addressed store, hash-verified

576 * \param topic the current text of cbWillTopic
577 */
578void LiveDataDock::willTopicChanged(const QString& topic) {
579 if (m_mqttClient->willTopic() != topic)
580 m_mqttClient->clearLastMessage();
581
582 m_mqttClient->setWillTopic(topic);
583}
584
585/*!
586 *\brief called when the selected will message type is changed in the will settings widget

Callers 1

showWillSettingsMethod · 0.95

Calls 3

willTopicMethod · 0.80
clearLastMessageMethod · 0.80
setWillTopicMethod · 0.80

Tested by

no test coverage detected