Skip to content

Commit

Permalink
plugins/m2k: fix patterns toggled signal after changing to QCheckBox …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
AlexandraTrifan committed Jan 17, 2025
1 parent 8f9ed1a commit db3f416
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions plugins/m2k/src/old/patterngenerator/patterns/patterns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down Expand Up @@ -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()));
Expand Down

0 comments on commit db3f416

Please sign in to comment.