From 2e1dd1a233e46f3c8d703b7d5d5cc8be70a4da3e Mon Sep 17 00:00:00 2001 From: Laurent Carlier Date: Thu, 31 Oct 2019 12:37:42 +0100 Subject: [PATCH] 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. --- gb.qt4/src/CTabStrip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.qt4/src/CTabStrip.cpp b/gb.qt4/src/CTabStrip.cpp index 2c24ded54..9d416b763 100644 --- a/gb.qt4/src/CTabStrip.cpp +++ b/gb.qt4/src/CTabStrip.cpp @@ -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);