Port to QStringLiteral operator

This commit is contained in:
Jonas Kvinge
2024-10-20 06:38:55 +02:00
parent 722035913e
commit ef9ef63f02
202 changed files with 2036 additions and 1889 deletions

View File

@@ -29,13 +29,15 @@
#include <QPainter>
#include <QMouseEvent>
using namespace Qt::Literals::StringLiterals;
RatingPainter::RatingPainter() {
// Load the base pixmaps
QIcon star_on(QStringLiteral(":/pictures/star-on.png"));
QIcon star_on(u":/pictures/star-on.png"_s);
QList<QSize> star_on_sizes = star_on.availableSizes();
QPixmap on(star_on.pixmap(star_on_sizes.last()));
QIcon star_off(QStringLiteral(":/pictures/star-off.png"));
QIcon star_off(u":/pictures/star-off.png"_s);
QList<QSize> star_off_sizes = star_off.availableSizes();
QPixmap off(star_off.pixmap(star_off_sizes.last()));