Async step change fix due to bug in some QT versions
This commit is contained in:
parent
868530ab52
commit
96081a7588
@ -690,16 +690,16 @@ void MainWindow::checkSDStatus()
|
||||
if(sdWatcher.isFinished() && sdprinting) injectCommand("M27");
|
||||
}
|
||||
|
||||
void MainWindow::on_stepspin_valueChanged(double arg1)
|
||||
void MainWindow::on_stepspin_valueChanged(const QString &arg1)
|
||||
{
|
||||
if(arg1 < 1) ui->stepspin->setSingleStep(0.1);
|
||||
else if(arg1 >=10) ui->stepspin->setSingleStep(10);
|
||||
else if((int)arg1 >= 1) ui->stepspin->setSingleStep(1);
|
||||
if(arg1.toFloat() < 1) ui->stepspin->setSingleStep(0.1);
|
||||
else if(arg1.toFloat() >=10) ui->stepspin->setSingleStep(10);
|
||||
else if(arg1.toFloat() >= 1) ui->stepspin->setSingleStep(1);
|
||||
}
|
||||
|
||||
void MainWindow::on_estepspin_valueChanged(double arg1)
|
||||
void MainWindow::on_estepspin_valueChanged(const QString &arg1)
|
||||
{
|
||||
if(arg1 < 1l) ui->estepspin->setSingleStep(0.1);
|
||||
else if(arg1 >=10) ui->estepspin->setSingleStep(10);
|
||||
else if((int)arg1 >= 1) ui->estepspin->setSingleStep(1);
|
||||
if(arg1.toFloat() < 1) ui->estepspin->setSingleStep(0.1);
|
||||
else if(arg1.toFloat() >=10) ui->estepspin->setSingleStep(10);
|
||||
else if(arg1.toFloat() >= 1) ui->estepspin->setSingleStep(1);
|
||||
}
|
||||
|
||||
@ -120,9 +120,9 @@ private slots:
|
||||
void checkSDStatus();
|
||||
void updateSDStatus();
|
||||
|
||||
void on_stepspin_valueChanged(double arg1);
|
||||
void on_stepspin_valueChanged(const QString &arg1);
|
||||
|
||||
void on_estepspin_valueChanged(double arg1);
|
||||
void on_estepspin_valueChanged(const QString &arg1);
|
||||
|
||||
signals:
|
||||
void sdReady();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user