summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/tinycan
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2021-07-23 09:03:55 +0200
committerAndre Hartmann <aha_1980@gmx.de>2021-07-23 13:23:23 +0200
commit3b2ce7c739ca2bb5b47d26fc1b0ee4294f49f0a4 (patch)
tree0a15ddffbbcfdddd84d1ed02d13c2c0ea0264d72 /src/plugins/canbus/tinycan
parent12efd9d9199caddda31aefad899bbdc7cfec81d2 (diff)
QCanBusDeviceInfo: Add method to obtain the plugin name
[ChangeLog][QCanBusDeviceInfo] Added the CAN bus plugin name to QCanBusDeviceInfo. Custom plugins must be adopted to the changed QCanBusDevice::createDeviceInfo() method. Pick-to: 6.2 Change-Id: I44d658aaa6f873eecce447dd9ee4539c9fbe2043 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/canbus/tinycan')
-rw-r--r--src/plugins/canbus/tinycan/tinycanbackend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/canbus/tinycan/tinycanbackend.cpp b/src/plugins/canbus/tinycan/tinycanbackend.cpp
index eed10ae..527cd14 100644
--- a/src/plugins/canbus/tinycan/tinycanbackend.cpp
+++ b/src/plugins/canbus/tinycan/tinycanbackend.cpp
@@ -74,7 +74,8 @@ bool TinyCanBackend::canCreate(QString *errorReason)
QList<QCanBusDeviceInfo> TinyCanBackend::interfaces()
{
QList<QCanBusDeviceInfo> result;
- result.append(createDeviceInfo(QStringLiteral("can0.0"), false, false));
+ result.append(createDeviceInfo(QStringLiteral("tinycan"), QStringLiteral("can0.0"),
+ false, false));
return result;
}