summaryrefslogtreecommitdiffstats
path: root/src/plugins/canbus/systeccan/systeccanbackend.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2021-01-06 19:00:57 +0100
committerAndre Hartmann <aha_1980@gmx.de>2021-02-03 14:57:12 +0100
commit227060f8c17aaf90fe542ad6079a6badaf410a0d (patch)
tree4c6e441c846a199a4e436f0a4fea07eeca9fa292 /src/plugins/canbus/systeccan/systeccanbackend.h
parentc990bdbf8ec922dd7702a2a0e33b9b70db3ac6ee (diff)
QCanBusDevice: Replace int parameter with ConfigurationKey
They only place where this might break user code, is for custom plugins using custom configuration parameters. For most users however, this type safety makes the API easier to use. [ChangeLog][QCanBusDevice] All functions dealing with configuration parameters now take a QCanBusDevice::ConfigurationKey instead an int. Fixes: QTBUG-89839 Change-Id: I0a1de5fdcfc4292b23599d4770102740a2df1601 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/canbus/systeccan/systeccanbackend.h')
-rw-r--r--src/plugins/canbus/systeccan/systeccanbackend.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/canbus/systeccan/systeccanbackend.h b/src/plugins/canbus/systeccan/systeccanbackend.h
index 22c1193..200b4ab 100644
--- a/src/plugins/canbus/systeccan/systeccanbackend.h
+++ b/src/plugins/canbus/systeccan/systeccanbackend.h
@@ -60,7 +60,7 @@ public:
bool open() override;
void close() override;
- void setConfigurationParameter(int key, const QVariant &value) override;
+ void setConfigurationParameter(ConfigurationKey key, const QVariant &value) override;
bool writeFrame(const QCanBusFrame &newData) override;