From f7def0d883fa5cab62ef61b40b9f857245be8e6c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 26 Nov 2023 21:29:16 -0500 Subject: Initial Qt 6 port. Many bug fixes. --- qmidiplayer-desktop/qmpefxwindow.cpp | 56 ++++++------------------------------ 1 file changed, 8 insertions(+), 48 deletions(-) (limited to 'qmidiplayer-desktop/qmpefxwindow.cpp') diff --git a/qmidiplayer-desktop/qmpefxwindow.cpp b/qmidiplayer-desktop/qmpefxwindow.cpp index 0a281cd..2cea976 100644 --- a/qmidiplayer-desktop/qmpefxwindow.cpp +++ b/qmidiplayer-desktop/qmpefxwindow.cpp @@ -35,6 +35,14 @@ qmpEfxWindow::qmpEfxWindow(QWidget *parent) : 0, true ); + connect(ui->sbRoom, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbDamp, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbWidth, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbLevelR, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbFeedBack, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbRate, qOverload(&QDoubleSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbDepth, qOverload(&QDoubleSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); + connect(ui->sbLevelC, qOverload(&QSpinBox::valueChanged), this, &qmpEfxWindow::spinValueChange); if (!settings->getOptionRaw("DialogStatus/EfxW", QRect()).toRect().isNull()) setGeometry(settings->getOptionRaw("DialogStatus/EfxW", QRect()).toRect()); if (settings->getOptionRaw("DialogStatus/EfxWShown", 0).toInt()) @@ -218,54 +226,6 @@ void qmpEfxWindow::on_dLevelC_valueChanged() dailValueChange(); } -void qmpEfxWindow::on_sbRoom_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbDamp_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbWidth_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbLevelR_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbFeedBack_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbRate_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbDepth_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - -void qmpEfxWindow::on_sbLevelC_valueChanged(QString s) -{ - s = QString(); - spinValueChange(); -} - void qmpEfxWindow::on_cbEnabledC_stateChanged() { sendEfxChange(); -- cgit v1.2.3