2021-09-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up deprecation warnings for 'QString::sprintf()'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-01 19:59:37 -04:00
parent 327ceacc06
commit ac594cc68b
298 changed files with 2880 additions and 2879 deletions

View File

@@ -157,7 +157,7 @@ void MainWidget::upShrinkData()
int x_shrink=d_shrink_factor_edit->text().toInt();
x_shrink=x_shrink*2;
d_shrink_factor_edit->setText(QString().sprintf("%d",x_shrink));
d_shrink_factor_edit->setText(QString::asprintf("%d",x_shrink));
LoadWave();
}
@@ -168,7 +168,7 @@ void MainWidget::downShrinkData()
if(x_shrink>1) {
x_shrink=x_shrink/2;
d_shrink_factor_edit->setText(QString().sprintf("%d",x_shrink));
d_shrink_factor_edit->setText(QString::asprintf("%d",x_shrink));
LoadWave();
}
}
@@ -212,7 +212,7 @@ void MainWidget::LoadWave()
this);
QGraphicsTextItem *t_item=
d_scene->addText(QString().sprintf("%d frames/pixel",1152*x_shrink),
d_scene->addText(QString::asprintf("%d frames/pixel",1152*x_shrink),
d_font_engine->bigLabelFont());
t_item->setDefaultTextColor(Qt::red);
// t_item->setPos(10.0,-35.0);