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:
parent
082eb5b733
commit
2e1dd1a233
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue