fix build regression with qt < 5.13
This commit is contained in:
parent
07df6687d6
commit
a54efa2255
1 changed files with 5 additions and 0 deletions
|
@ -63,7 +63,12 @@ QIcon MessagesModel::generateIconForScore(double score) {
|
|||
paint.fillPath(path, Qt::GlobalColor::white);
|
||||
paint.drawPath(path);
|
||||
|
||||
#if QT_VERSION >= 0x050D00 // Qt >= 5.13.0
|
||||
path.clear();
|
||||
#else
|
||||
path = QPainterPath();
|
||||
#endif
|
||||
|
||||
paint.setPen(Qt::GlobalColor::transparent);
|
||||
|
||||
int bar_height = 6 * level;
|
||||
|
|
Loading…
Add table
Reference in a new issue