diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2021-02-15 15:52:44 +0100 |
---|---|---|
committer | Andre Hartmann <aha_1980@gmx.de> | 2021-02-15 16:05:45 +0100 |
commit | 5c219a1810cda96b3172d8ab4f9a01c5b06095f7 (patch) | |
tree | 2b82deab03f48cf299fedb02b759d3e6ee1f08be /examples/serialbus/can | |
parent | 227060f8c17aaf90fe542ad6079a6badaf410a0d (diff) |
CAN-Example: Fix clang warnings
warning: Pass a context object as 3rd connect parameter
[clazy-connect-3arg-lambda]
Change-Id: I39b85204eeb2584d3f39ba28592b76d0b69465a6
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/serialbus/can')
-rw-r--r-- | examples/serialbus/can/sendframebox.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/serialbus/can/sendframebox.cpp b/examples/serialbus/can/sendframebox.cpp index 13042d0..980548b 100644 --- a/examples/serialbus/can/sendframebox.cpp +++ b/examples/serialbus/can/sendframebox.cpp @@ -137,30 +137,30 @@ SendFrameBox::SendFrameBox(QWidget *parent) : m_hexStringValidator = new HexStringValidator(this); m_ui->payloadEdit->setValidator(m_hexStringValidator); - connect(m_ui->dataFrame, &QRadioButton::toggled, [this](bool set) { + connect(m_ui->dataFrame, &QRadioButton::toggled, this, [this](bool set) { if (set) m_ui->flexibleDataRateBox->setEnabled(true); }); - connect(m_ui->remoteFrame, &QRadioButton::toggled, [this](bool set) { + connect(m_ui->remoteFrame, &QRadioButton::toggled, this, [this](bool set) { if (set) { m_ui->flexibleDataRateBox->setEnabled(false); m_ui->flexibleDataRateBox->setChecked(false); } }); - connect(m_ui->errorFrame, &QRadioButton::toggled, [this](bool set) { + connect(m_ui->errorFrame, &QRadioButton::toggled, this, [this](bool set) { if (set) { m_ui->flexibleDataRateBox->setEnabled(false); m_ui->flexibleDataRateBox->setChecked(false); } }); - connect(m_ui->extendedFormatBox, &QCheckBox::toggled, [this](bool set) { + connect(m_ui->extendedFormatBox, &QCheckBox::toggled, this, [this](bool set) { m_hexIntegerValidator->setMaximum(set ? MaxExtendedId : MaxStandardId); }); - connect(m_ui->flexibleDataRateBox, &QCheckBox::toggled, [this](bool set) { + connect(m_ui->flexibleDataRateBox, &QCheckBox::toggled, this, [this](bool set) { m_hexStringValidator->setMaxLength(set ? MaxPayloadFd : MaxPayload); m_ui->bitrateSwitchBox->setEnabled(set); if (!set) |