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

@@ -108,7 +108,7 @@ void PieCounter::setTime(int msecs)
stop();
pie_length=msecs;
pie_time=msecs;
pie_time_label->setText(QString().sprintf(":%02d",pie_time/1000));
pie_time_label->setText(QString::asprintf(":%02d",pie_time/1000));
}
@@ -214,13 +214,13 @@ void PieCounter::tickCounter()
else {
pie_talk_label->show();
pie_talk_label->
setText(QString().sprintf(":%02d",(750+pie_talk_end-pie_pos)/1000));
setText(QString::asprintf(":%02d",(750+pie_talk_end-pie_pos)/1000));
}
if(pie_time<=0) {
stop();
}
else {
pie_time_label->setText(QString().sprintf(":%02d",(1000+pie_time)/1000));
pie_time_label->setText(QString::asprintf(":%02d",(1000+pie_time)/1000));
update();
}
}