Fix compiler warning in gb.qt5 about deprecation of QString::sprintf()

QString::sprintf() is deprecated since Qt 5.14
Use QString().arg() instead for both qt4 and qt5 components.
This commit is contained in:
Laurent Carlier 2019-10-31 12:37:42 +01:00
parent 082eb5b733
commit 2e1dd1a233

View file

@ -363,7 +363,7 @@ static bool set_tab_count(void *_object, int new_count)
{
tab = new CTab(THIS, new MyContainer(WIDGET));
label.sprintf("Tab %d", i);
label = QString("Tab %1").arg(i);
WIDGET->addTab(tab->widget, label);
WIDGET->stack.append(tab);