summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/receivedframesmodel.cpp
diff options
context:
space:
mode:
authorIvan Solovev <ivan.solovev@qt.io>2023-02-03 12:16:35 +0100
committerIvan Solovev <ivan.solovev@qt.io>2023-02-03 16:06:33 +0100
commit2c1ff70cd1960fe582f461207424c26a4bbe5b9b (patch)
tree6ced937270582c54f847471195ded02fcb5b4251 /examples/serialbus/can/receivedframesmodel.cpp
parentc05f843230069cb4b1670ee0e7efd88fcb1cb54b (diff)
CAN Example: improve UI
* Change title to "CAN Manager" (to avoid using "Example" in the name) * Rename "Received CAN messages" -> "Received CAN frames" * Rename "CAN-ID" -> "Frame ID" in the received frames table * Rename "Data" -> "Payload" in the received frames table * Show Frame ID uppercase in the received frames table * Stretch the "Payload" section to take the rest of the available width Task-number: QTBUG-110890 Pick-to: 6.5 Change-Id: Iea57246f45918d69bb11fff78b30952e447e87b2 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'examples/serialbus/can/receivedframesmodel.cpp')
-rw-r--r--examples/serialbus/can/receivedframesmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/serialbus/can/receivedframesmodel.cpp b/examples/serialbus/can/receivedframesmodel.cpp
index efd5df2..cf678c0 100644
--- a/examples/serialbus/can/receivedframesmodel.cpp
+++ b/examples/serialbus/can/receivedframesmodel.cpp
@@ -44,11 +44,11 @@ QVariant ReceivedFramesModel::headerData(int section, Qt::Orientation orientatio
case Flags:
return tr("Flags");
case CanID:
- return tr("CAN-ID");
+ return tr("Frame ID");
case DLC:
return tr("DLC");
case Data:
- return tr("Data");
+ return tr("Payload");
}
}
@@ -61,9 +61,9 @@ QVariant ReceivedFramesModel::headerData(int section, Qt::Orientation orientatio
case Flags:
return QSize(50, 25);
case CanID:
- return QSize(50, 25);
+ return QSize(75, 25);
case DLC:
- return QSize(25, 25);
+ return QSize(30, 25);
case Data:
return QSize(200, 25);
}