Disable automatic conversions from 8-bit strings
This commit is contained in:
@@ -29,16 +29,13 @@
|
||||
#include <QPainter>
|
||||
#include <QMouseEvent>
|
||||
|
||||
const int RatingPainter::kStarCount;
|
||||
const int RatingPainter::kStarSize;
|
||||
|
||||
RatingPainter::RatingPainter() {
|
||||
|
||||
// Load the base pixmaps
|
||||
QIcon star_on(":/pictures/star-on.png");
|
||||
QIcon star_on(QStringLiteral(":/pictures/star-on.png"));
|
||||
QList<QSize> star_on_sizes = star_on.availableSizes();
|
||||
QPixmap on(star_on.pixmap(star_on_sizes.last()));
|
||||
QIcon star_off(":/pictures/star-off.png");
|
||||
QIcon star_off(QStringLiteral(":/pictures/star-off.png"));
|
||||
QList<QSize> star_off_sizes = star_off.availableSizes();
|
||||
QPixmap off(star_off.pixmap(star_off_sizes.last()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user