--- a/MqttMonitor/MqttMonitorWidget.ui Mon Sep 03 18:52:50 2018 +0200 +++ b/MqttMonitor/MqttMonitorWidget.ui Sat Sep 08 16:51:39 2018 +0200 @@ -311,6 +311,16 @@ </item> </layout> </item> + <item> + <widget class="QCheckBox" name="clearPublishCheckBox"> + <property name="toolTip"> + <string>Select to clear the publish data after the message was published</string> + </property> + <property name="text"> + <string>Clear when sent</string> + </property> + </widget> + </item> </layout> </widget> </item> @@ -366,7 +376,10 @@ </spacer> </item> <item> - <widget class="QPushButton" name="pushButton"> + <widget class="QPushButton" name="messagesClearButton"> + <property name="toolTip"> + <string>Press to clear the list of received messages</string> + </property> <property name="text"> <string>Clear</string> </property> @@ -1172,25 +1185,41 @@ <tabstop>publishPayloadEdit</tabstop> <tabstop>publishButton</tabstop> <tabstop>messagesEdit</tabstop> - <tabstop>pushButton</tabstop> + <tabstop>messagesClearButton</tabstop> <tabstop>brokerStatusButton</tabstop> <tabstop>scrollArea</tabstop> </tabstops> <resources/> <connections> <connection> - <sender>pushButton</sender> + <sender>messagesClearButton</sender> <signal>clicked()</signal> <receiver>messagesEdit</receiver> <slot>clear()</slot> <hints> <hint type="sourcelabel"> - <x>378</x> - <y>578</y> + <x>343</x> + <y>565</y> </hint> <hint type="destinationlabel"> - <x>179</x> - <y>272</y> + <x>218</x> + <y>336</y> + </hint> + </hints> + </connection> + <connection> + <sender>clearPublishCheckBox</sender> + <signal>clicked(bool)</signal> + <receiver>publishClearButton</receiver> + <slot>setHidden(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>60</x> + <y>548</y> + </hint> + <hint type="destinationlabel"> + <x>65</x> + <y>521</y> </hint> </hints> </connection>