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:
@@ -102,7 +102,7 @@ int PositionDialog::exec()
|
||||
{
|
||||
pos_screen_number_box->clear();
|
||||
for(int i=0;i<pos_desktop_widget->numScreens();i++) {
|
||||
pos_screen_number_box->insertItem(i,QString().sprintf("%d",i));
|
||||
pos_screen_number_box->insertItem(i,QString::asprintf("%d",i));
|
||||
if(i==pos_config->screenNumber()) {
|
||||
pos_screen_number_box->setCurrentIndex(i);
|
||||
}
|
||||
|
||||
@@ -229,7 +229,7 @@ void MainWidget::mouseDoubleClickEvent(QMouseEvent *e)
|
||||
QProcess *proc=new QProcess(this);
|
||||
QStringList args;
|
||||
args.push_back("-geometry");
|
||||
args.push_back(QString().sprintf("+%d+%d",mon_rdselect_x,mon_rdselect_y));
|
||||
args.push_back(QString::asprintf("+%d+%d",mon_rdselect_x,mon_rdselect_y));
|
||||
proc->start("rdselect",args);
|
||||
proc->waitForFinished(-1);
|
||||
if(proc->exitStatus()!=QProcess::NormalExit) {
|
||||
@@ -241,7 +241,7 @@ void MainWidget::mouseDoubleClickEvent(QMouseEvent *e)
|
||||
if(proc->exitCode()!=0) {
|
||||
QMessageBox::critical(this,"RDMonitor - "+tr("Error"),
|
||||
tr("RDSelect returned non-zero exit code")+
|
||||
QString().sprintf(" %d.",proc->exitCode())+
|
||||
QString::asprintf(" %d.",proc->exitCode())+
|
||||
"\n\nERROR MESSAGE:\n"+
|
||||
proc->readAllStandardError());
|
||||
delete proc;
|
||||
|
||||
Reference in New Issue
Block a user