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

@@ -52,11 +52,11 @@ DeckMon::DeckMon(QString station,unsigned channel,QWidget *parent)
mon_station_label->setFont(defaultFont());
if((mon_channel>0)&&(mon_channel<(MAX_DECKS+1))) {
mon_station_label->
setText(mon_station+QString().sprintf(" : %uR",mon_channel));
setText(mon_station+QString::asprintf(" : %uR",mon_channel));
}
if((mon_channel>128)&&(mon_channel<(MAX_DECKS+129))) {
mon_station_label->
setText(mon_station+QString().sprintf(" : %uP",mon_channel-128));
setText(mon_station+QString::asprintf(" : %uP",mon_channel-128));
}
//
@@ -219,7 +219,7 @@ void DeckMon::setStatus(RDDeck::Status status,int id,const QString &cutname)
void DeckMon::setEvent(int number)
{
mon_event_label->setText(QString().sprintf("%d",number));
mon_event_label->setText(QString::asprintf("%d",number));
mon_event_label->setPalette(mon_red_palette);
mon_event_timer->start(1000);
}
@@ -283,7 +283,7 @@ void DeckMon::SetCutInfo(int id,const QString &cutname)
return;
}
sql=QString("select `DESCRIPTION` from `RECORDINGS` where ")+
QString().sprintf("`ID`=%d",id);
QString::asprintf("`ID`=%d",id);
q=new RDSqlQuery(sql);
if(!q->first()) {
if(cutname.isEmpty()) {