mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 16:50:13 +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:
@@ -1324,7 +1324,7 @@ void EditLog::UpdateTracks()
|
||||
}
|
||||
}
|
||||
edit_track_label->
|
||||
setText(QString().sprintf("%u / %u",tracks,markers+tracks));
|
||||
setText(QString::asprintf("%u / %u",tracks,markers+tracks));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ void EditLogLine::FillCart(int cartnum)
|
||||
{
|
||||
RDCart *cart=new RDCart(cartnum);
|
||||
if(cartnum!=0) {
|
||||
edit_cart_edit->setText(QString().sprintf("%05u",cartnum));
|
||||
edit_cart_edit->setText(QString::asprintf("%05u",cartnum));
|
||||
}
|
||||
edit_title_edit->setText(cart->title());
|
||||
edit_artist_edit->setText(cart->artist());
|
||||
|
||||
@@ -223,7 +223,7 @@ void ListReports::GenerateLogReport(QString *report)
|
||||
switch(logline->type()) {
|
||||
case RDLogLine::Cart:
|
||||
case RDLogLine::Macro:
|
||||
*report+=QString().sprintf("%06u ",logline->cartNumber());
|
||||
*report+=QString::asprintf("%06u ",logline->cartNumber());
|
||||
*report+=RDReport::leftJustify(logline->groupName(),10)+" ";
|
||||
*report+=RDReport::rightJustify(RDGetTimeLength(logline->forcedLength(),false,false),8)+" ";
|
||||
*report+=RDReport::leftJustify(logline->title(),33)+" ";
|
||||
@@ -278,7 +278,7 @@ void ListReports::GenerateLogReport(QString *report)
|
||||
//
|
||||
// Line
|
||||
//
|
||||
*report+=QString().sprintf("%4d",i);
|
||||
*report+=QString::asprintf("%4d",i);
|
||||
|
||||
//
|
||||
// End of Line
|
||||
|
||||
@@ -326,7 +326,7 @@ void MainWidget::deleteData()
|
||||
if(tracks>0) {
|
||||
if(QMessageBox::question(this,"RDLogEdit - "+tr("Tracks Exist"),
|
||||
tr("This will also delete the")+
|
||||
QString().sprintf(" %u ",tracks)+
|
||||
QString::asprintf(" %u ",tracks)+
|
||||
tr("voice tracks associated with this log.")+
|
||||
"\n"+tr("Continue?"),
|
||||
QMessageBox::Yes,QMessageBox::No)!=
|
||||
@@ -338,7 +338,7 @@ void MainWidget::deleteData()
|
||||
else {
|
||||
if(QMessageBox::question(this,"RDLogEdit - "+tr("Delete Log"),
|
||||
tr("Are you sure you want to delete these")+
|
||||
QString().sprintf(" %d ",rows.size())+
|
||||
QString::asprintf(" %d ",rows.size())+
|
||||
tr("logs?"),QMessageBox::Yes,QMessageBox::No)!=
|
||||
QMessageBox::Yes) {
|
||||
return;
|
||||
@@ -346,7 +346,7 @@ void MainWidget::deleteData()
|
||||
if(tracks>0) {
|
||||
if(QMessageBox::question(this,"RDLogEdit - "+tr("Tracks Exist"),
|
||||
tr("This will also delete the")+
|
||||
QString().sprintf(" %u ",tracks)+
|
||||
QString::asprintf(" %u ",tracks)+
|
||||
tr("voice tracks associated with these logs.")+
|
||||
"\n"+tr("Continue?"),
|
||||
QMessageBox::Yes,QMessageBox::No)!=
|
||||
@@ -531,7 +531,7 @@ void MainWidget::reportData()
|
||||
// Voice Tracks
|
||||
//
|
||||
report+=
|
||||
QString().sprintf("%3u/%-3u ",q->value(7).toUInt(),q->value(8).toUInt());
|
||||
QString::asprintf("%3u/%-3u ",q->value(7).toUInt(),q->value(8).toUInt());
|
||||
|
||||
//
|
||||
// Start Date
|
||||
|
||||
@@ -232,7 +232,7 @@ void RenderDialog::selectData()
|
||||
if(render_cut_dialog->exec(&cutname)) {
|
||||
render_to_cartnum=RDCut::cartNumber(cutname);
|
||||
render_to_cutnum=RDCut::cutNumber(cutname);
|
||||
render_filename_edit->setText(QString().sprintf("%06u:%03d",
|
||||
render_filename_edit->setText(QString::asprintf("%06u:%03d",
|
||||
render_to_cartnum,render_to_cutnum));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user