From 829e201a12ef66607d950f05065e6845200df069 Mon Sep 17 00:00:00 2001 From: AlexandraTrifan Date: Fri, 20 Dec 2024 14:11:47 +0200 Subject: [PATCH] plugins/m2k: fix patterns toggled signal after changing to QCheckBox type. Before v2, SmallOnOffSwitch was a QPushButton and emitted the clicked signal. Now it is a QCheckBox and the toggled signal should be used instead. Signed-off-by: AlexandraTrifan --- .../src/old/patterngenerator/patterns/patterns.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/m2k/src/old/patterngenerator/patterns/patterns.cpp b/plugins/m2k/src/old/patterngenerator/patterns/patterns.cpp index 0d6f1aa842..ce4a16b0de 100644 --- a/plugins/m2k/src/old/patterngenerator/patterns/patterns.cpp +++ b/plugins/m2k/src/old/patterngenerator/patterns/patterns.cpp @@ -1632,8 +1632,8 @@ void I2CPatternUI::build_ui(QWidget *parent, uint16_t number_of_channels) // ui->LE_toSend->setText(QString::fromStdString(pattern->get_string())); connect(frequencySpinButton, SIGNAL(valueChanged(double)), this, SLOT(parse_ui())); - connect(ui->PB_MSB, SIGNAL(clicked()), this, SLOT(parse_ui())); - connect(ui->PB_readWrite, SIGNAL(clicked()), this, SLOT(parse_ui())); + connect(ui->PB_MSB, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); + connect(ui->PB_readWrite, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); connect(ui->LE_IFS, SIGNAL(textChanged(QString)), this, SLOT(parse_ui())); connect(ui->LE_address, SIGNAL(textChanged(QString)), this, SLOT(parse_ui())); connect(ui->LE_toSend, SIGNAL(textChanged(QString)), this, SLOT(parse_ui())); @@ -1942,10 +1942,10 @@ void SPIPatternUI::build_ui(QWidget *parent, uint16_t number_of_channels) // ui->LE_toSend->setText(QString::fromStdString(pattern->get_string())); connect(frequencySpinButton, SIGNAL(valueChanged(double)), this, SLOT(parse_ui())); - connect(ui->PB_CPHA, SIGNAL(clicked()), this, SLOT(parse_ui())); - connect(ui->PB_CPOL, SIGNAL(clicked()), this, SLOT(parse_ui())); - connect(ui->PB_CS, SIGNAL(clicked()), this, SLOT(parse_ui())); - connect(ui->PB_MSB, SIGNAL(clicked()), this, SLOT(parse_ui())); + connect(ui->PB_CPHA, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); + connect(ui->PB_CPOL, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); + connect(ui->PB_CS, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); + connect(ui->PB_MSB, SIGNAL(toggled(bool)), this, SLOT(parse_ui())); connect(ui->LE_BPF, SIGNAL(textChanged(QString)), this, SLOT(parse_ui())); connect(ui->LE_IFS, SIGNAL(textChanged(QString)), this, SLOT(parse_ui()));