mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
Debian 11.
Took 5 minutes
This commit is contained in:
parent
e743a556b7
commit
599dd715c7
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ void ColorPie::paintEvent(QPaintEvent *)
|
|||
QString label = QString("%1%").arg(int(ratio * 100 + 0.5));
|
||||
|
||||
QFontMetrics fm(p.font());
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
|
||||
int labelWidth = fm.horizontalAdvance(label);
|
||||
#else
|
||||
int labelWidth = fm.width(label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue