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

@@ -99,10 +99,10 @@ MainWidget::MainWidget(QWidget *parent)
button->setGeometry(10+90*col,10+60*row,80,50);
button->setWordWrap(true);
button->setText(
profile->stringValue("SoftKeys",QString().sprintf("Legend%d",n+1),
QString().sprintf("Button %d",n+1)));
profile->stringValue("SoftKeys",QString::asprintf("Legend%d",n+1),
QString::asprintf("Button %d",n+1)));
if(!(color_name=profile->stringValue("SoftKeys",
QString().sprintf("Color%d",n+1),"")).
QString::asprintf("Color%d",n+1),"")).
isEmpty()) {
color=QColor(color_name);
QPalette pal=QPalette(color,palette().color(QPalette::Background));