diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2016-07-11 21:24:49 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2016-07-29 10:04:07 +0000 |
commit | 84c891ce502c2503f8c6cb808d600e88953aeacb (patch) | |
tree | ef766673d2b78e60346986d4c5aa8fa034882f40 /examples/serialbus/can/mainwindow.ui | |
parent | 5d03f35ff2c3beaa6518665434b5e7f4d2b9f478 (diff) |
CAN-Example: Display all received messages in one log window
Use the new QCanBusFrame::toString() function to format received
messages and add the timestamp.
Change-Id: Iee237b02e4c0f0fe50dd8d8956ec405cefc4ef42
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/serialbus/can/mainwindow.ui')
-rw-r--r-- | examples/serialbus/can/mainwindow.ui | 74 |
1 files changed, 38 insertions, 36 deletions
diff --git a/examples/serialbus/can/mainwindow.ui b/examples/serialbus/can/mainwindow.ui index 9700024..120f7be 100644 --- a/examples/serialbus/can/mainwindow.ui +++ b/examples/serialbus/can/mainwindow.ui @@ -14,13 +14,13 @@ <string>CAN Example</string> </property> <widget class="QWidget" name="centralWidget"> - <layout class="QGridLayout" name="gridLayout_3"> - <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> <widget class="QGroupBox" name="sendMessagesBox"> <property name="title"> <string>Send CAN message</string> </property> - <layout class="QHBoxLayout" name="horizontalLayout"> + <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> @@ -119,39 +119,41 @@ Otherwise, the standard format with 11 bit idenfier is used.</string> </layout> </widget> </item> - <item row="1" column="0"> - <layout class="QGridLayout" name="gridLayout_2"> - <item row="0" column="0"> - <widget class="QLabel" name="label_4"> - <property name="text"> - <string>Messages</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QLabel" name="label_5"> - <property name="text"> - <string>Requests</string> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QLabel" name="label_6"> - <property name="text"> - <string>Errors</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QListWidget" name="receiveList"/> - </item> - <item row="1" column="1"> - <widget class="QListWidget" name="requestList"/> - </item> - <item row="1" column="2"> - <widget class="QListWidget" name="errorList"/> - </item> - </layout> + <item> + <widget class="QGroupBox" name="receivedMessagesBox"> + <property name="title"> + <string>Received CAN messages</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <widget class="QLabel" name="label_3"> + <property name="font"> + <font> + <family>Courier</family> + </font> + </property> + <property name="text"> + <string>Timestamp CAN-ID DLC Data</string> + </property> + </widget> + </item> + <item> + <widget class="QTextEdit" name="receivedMessagesEdit"> + <property name="font"> + <font> + <family>Courier</family> + </font> + </property> + <property name="undoRedoEnabled"> + <bool>false</bool> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> </item> </layout> </widget> |