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

@@ -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);
}

View File

@@ -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;