diff --git a/ui/mf_trailerdecoderdialog.cpp b/ui/mf_trailerdecoderdialog.cpp index 3b09a16..fca353d 100644 --- a/ui/mf_trailerdecoderdialog.cpp +++ b/ui/mf_trailerdecoderdialog.cpp @@ -15,10 +15,10 @@ MF_trailerDecoderDialog::MF_trailerDecoderDialog(QWidget *parent) : sizeGroup->addButton(ui->size4Button, 4); sizeGroup->addButton(ui->size16Button, 16); connect(sizeGroup, QOverload::of(&QButtonGroup::buttonToggled), this, &MF_trailerDecoderDialog::on_blockSizeChanged); - connect(ui->C0Box, &QSpinBox::textChanged, this, &MF_trailerDecoderDialog::on_boxChanged); - connect(ui->C1Box, &QSpinBox::textChanged, this, &MF_trailerDecoderDialog::on_boxChanged); - connect(ui->C2Box, &QSpinBox::textChanged, this, &MF_trailerDecoderDialog::on_boxChanged); - connect(ui->C3Box, &QSpinBox::textChanged, this, &MF_trailerDecoderDialog::on_boxChanged); + connect(ui->C0Box, QOverload::of(&QSpinBox::valueChanged), this, &MF_trailerDecoderDialog::on_boxChanged); + connect(ui->C1Box, QOverload::of(&QSpinBox::valueChanged), this, &MF_trailerDecoderDialog::on_boxChanged); + connect(ui->C2Box, QOverload::of(&QSpinBox::valueChanged), this, &MF_trailerDecoderDialog::on_boxChanged); + connect(ui->C3Box, QOverload::of(&QSpinBox::valueChanged), this, &MF_trailerDecoderDialog::on_boxChanged); ui->dataBlockWidget->setRowCount(3); ui->dataBlockWidget->setColumnCount(4); @@ -123,7 +123,7 @@ void MF_trailerDecoderDialog::setTableItem(QTableWidget* widget, int row, int co widget->item(row, column)->setText(text); } -void MF_trailerDecoderDialog::on_boxChanged(const QString &arg1) +void MF_trailerDecoderDialog::on_boxChanged(int arg1) { quint8 ACBits[4]; ACBits[0] = ui->C0Box->value(); diff --git a/ui/mf_trailerdecoderdialog.h b/ui/mf_trailerdecoderdialog.h index e863f1c..775608a 100644 --- a/ui/mf_trailerdecoderdialog.h +++ b/ui/mf_trailerdecoderdialog.h @@ -27,7 +27,7 @@ private slots: void on_blockSizeChanged(int id, bool st); - void on_boxChanged(const QString& arg1); + void on_boxChanged(int arg1); private: Ui::MF_trailerDecoderDialog *ui; QRegularExpressionValidator* validator;