qt: use QString::setNum() rather than QString::sprintf()
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 18 Dec 2024 10:57:05 +0000 (11:57 +0100)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
commita3dd4a50a1fef9b767b3245ca811bc7029c72ae4
treee90cc969ddfe4ce75185b4dfdeff4f82aedc9116
parent50a1c8789ea4a78a4f9109b313efeb5e1477ad03
qt: use QString::setNum() rather than QString::sprintf()

It's deprecated and one of the replacement suggested in the doc [^1].
QString::asprint() might be the more logical choice, but it's also not recommended [^2].

[^1] https://doc.qt.io/qt-5/qstring-obsolete.html#sprintf
[^2] https://doc.qt.io/qt-5/qstring.html#asprintf

Gbp-Pq: Name 0121-qt-use-QString-setNum-rather-than-QString-sprintf.patch
modules/gui/qt/menus.cpp