mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-29 08:40:12 +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:
@@ -197,7 +197,7 @@ EditCast::EditCast(unsigned cast_id,QWidget *parent)
|
||||
// Populate Values
|
||||
//
|
||||
setWindowTitle("RDCastManager - "+tr("Editing Item")+
|
||||
+" [Cast ID: "+QString().sprintf("%u",cast_cast->id())+"]");
|
||||
+" [Cast ID: "+QString::asprintf("%u",cast_cast->id())+"]");
|
||||
cast_item_title_edit->setText(cast_cast->itemTitle());
|
||||
cast_item_author_edit->setText(cast_cast->itemAuthor());
|
||||
if(cast_cast->originLoginName().isEmpty()) {
|
||||
|
||||
@@ -37,7 +37,7 @@ ListCasts::ListCasts(unsigned feed_id,QWidget *parent)
|
||||
list_feed_id=feed_id;
|
||||
|
||||
setWindowTitle("RDCastManager - "+tr("Podcast Item List")+
|
||||
" [Feed ID: "+QString().sprintf("%u",feed_id)+"]");
|
||||
" [Feed ID: "+QString::asprintf("%u",feed_id)+"]");
|
||||
|
||||
//
|
||||
// Fix the Window Size
|
||||
@@ -351,13 +351,13 @@ void ListCasts::deleteData()
|
||||
pd->setValue(1);
|
||||
qApp->processEvents();
|
||||
sql=QString("delete from `PODCASTS` where ")+
|
||||
QString().sprintf("`ID`=%u",cast_id);
|
||||
QString::asprintf("`ID`=%u",cast_id);
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
sql=QString("update `FEEDS` set ")+
|
||||
"LAST_BUILD_DATETIME=now() "+
|
||||
"where "+
|
||||
QString().sprintf("`ID`=%u",list_feed_id);
|
||||
QString::asprintf("`ID`=%u",list_feed_id);
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
if(!list_feed->postXml()) {
|
||||
|
||||
@@ -207,13 +207,13 @@ void RenderDialog::UpdateLogEventsSelection()
|
||||
else {
|
||||
if(d_modified_start_line==d_modified_end_line) {
|
||||
d_select_label->setText(tr("Line")+
|
||||
QString().sprintf(" %d",d_modified_start_line));
|
||||
QString::asprintf(" %d",d_modified_start_line));
|
||||
}
|
||||
else {
|
||||
d_select_label->setText(tr("Lines")+
|
||||
QString().sprintf(" %d ",d_modified_start_line)+
|
||||
QString::asprintf(" %d ",d_modified_start_line)+
|
||||
tr("through")+
|
||||
QString().sprintf(" %d",d_modified_end_line));
|
||||
QString::asprintf(" %d",d_modified_end_line));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user