--- a/MqttMonitor/MqttMonitorWidget.ui Sun Sep 09 12:21:19 2018 +0200 +++ b/MqttMonitor/MqttMonitorWidget.ui Sun Sep 09 17:32:54 2018 +0200 @@ -144,7 +144,7 @@ <item> <widget class="QTabWidget" name="brokerWidget"> <property name="currentIndex"> - <number>0</number> + <number>3</number> </property> <widget class="QWidget" name="pubSubTab"> <attribute name="title"> @@ -479,8 +479,8 @@ <rect> <x>0</x> <y>0</y> - <width>339</width> - <height>670</height> + <width>178</width> + <height>840</height> </rect> </property> <layout class="QFormLayout" name="formLayout"> @@ -1197,6 +1197,80 @@ </item> </layout> </widget> + <widget class="QWidget" name="logTab"> + <attribute name="title"> + <string>Log</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_17"> + <item> + <widget class="QLabel" name="label_41"> + <property name="text"> + <string>Max. Log Level:</string> + </property> + </widget> + </item> + <item> + <widget class="QComboBox" name="logLevelComboBox"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="toolTip"> + <string>Select the maximum log level to show</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QPlainTextEdit" name="logEdit"> + <property name="tabChangesFocus"> + <bool>true</bool> + </property> + <property name="lineWrapMode"> + <enum>QPlainTextEdit::NoWrap</enum> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + <property name="textInteractionFlags"> + <set>Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_16"> + <item> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="logClearButton"> + <property name="toolTip"> + <string>Press to clear the list of received log messages</string> + </property> + <property name="text"> + <string>Clear</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> </widget> </item> </layout> @@ -1232,10 +1306,13 @@ <tabstop>publishRetainCheckBox</tabstop> <tabstop>publishClearButton</tabstop> <tabstop>publishButton</tabstop> + <tabstop>clearPublishCheckBox</tabstop> <tabstop>messagesEdit</tabstop> <tabstop>messagesClearButton</tabstop> <tabstop>brokerStatusButton</tabstop> <tabstop>scrollArea</tabstop> + <tabstop>logEdit</tabstop> + <tabstop>logClearButton</tabstop> </tabstops> <resources/> <connections> @@ -1271,5 +1348,21 @@ </hint> </hints> </connection> + <connection> + <sender>logClearButton</sender> + <signal>clicked()</signal> + <receiver>logEdit</receiver> + <slot>clear()</slot> + <hints> + <hint type="sourcelabel"> + <x>354</x> + <y>559</y> + </hint> + <hint type="destinationlabel"> + <x>274</x> + <y>456</y> + </hint> + </hints> + </connection> </connections> </ui>