summaryrefslogtreecommitdiff
path: root/audio/fooyin/files/patch-src_utils_starrating.cpp
blob: d6bba85b0a9fe09d667f0517ab7055f5bc94e810 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Fix build with Qt 6.10.1. The QString::arg() method no longer accepts
implicit conversions. [1]

[1] https://doc.qt.io/qt-6/qstring.html#arg-2

--- src/utils/starrating.cpp.orig	2025-09-21 21:11:29 UTC
+++ src/utils/starrating.cpp
@@ -104,7 +104,7 @@ void StarRating::paint(QPainter* painter, const QRect&
                                  .arg(m_maxCount)
                                  .arg(mode == EditMode::Editable ? 1 : 0)
                                  .arg(rect.width())
-                                 .arg(alignment);
+                                 .arg(alignment.toInt());
 
     QPixmap pixmap;
     if(!QPixmapCache::find(cacheKey, &pixmap)) {