Mon, 27 Aug 2018 19:26:27 +0200
Fixed some code style issues and implemented the broker connect/disconnect group of the MqttMonitorWidget.
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MqttMonitorWidget</class> <widget class="QWidget" name="MqttMonitorWidget"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>400</width> <height>300</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QLabel" name="pixmapLabel"/> </item> <item> <widget class="QLabel" name="label_2"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string><b>MQTT Monitor</b></string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> </widget> </item> </layout> </item> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Broker</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QComboBox" name="brokerComboBox"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Enter the host name of the broker</string> </property> <property name="editable"> <bool>true</bool> </property> </widget> </item> <item row="0" column="1"> <widget class="QToolButton" name="connectButton"> <property name="toolTip"> <string>Press to connect to/disconnect from the broker</string> </property> <property name="text"> <string/> </property> </widget> </item> <item row="1" column="0" colspan="2"> <widget class="QLabel" name="brokerStatusLabel"> <property name="wordWrap"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </item> <item> <spacer name="verticalSpacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>251</height> </size> </property> </spacer> </item> </layout> </widget> <resources/> <connections/> </ui>