Drop Qt 5 support
Qt 6 has been available for almost 4 years. Qt 5 is no longer officially supported by Qt for opensource, it's time to drop Qt 5.
This commit is contained in:
@@ -63,21 +63,12 @@ void FavoriteWidget::paintEvent(QPaintEvent *e) {
|
||||
|
||||
QStylePainter p(this);
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
if (favorite_) {
|
||||
p.drawPixmap(rect_, on_.pixmap(rect_.size(), devicePixelRatioF()));
|
||||
}
|
||||
else {
|
||||
p.drawPixmap(rect_, off_.pixmap(rect_.size(), devicePixelRatioF()));
|
||||
}
|
||||
#else
|
||||
if (favorite_) {
|
||||
p.drawPixmap(rect_, on_.pixmap(rect_.size()));
|
||||
}
|
||||
else {
|
||||
p.drawPixmap(rect_, off_.pixmap(rect_.size()));
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user