mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user