diff --git a/custom_widgets/yacreader_busy_widget.cpp b/custom_widgets/yacreader_busy_widget.cpp index 6fd5ed23..10550e34 100644 --- a/custom_widgets/yacreader_busy_widget.cpp +++ b/custom_widgets/yacreader_busy_widget.cpp @@ -15,14 +15,6 @@ YACReaderBusyWidget::YACReaderBusyWidget(QWidget *parent) busy->move(20, 20); } -void YACReaderBusyWidget::paintEvent(QPaintEvent *event) -{ - Q_UNUSED(event); - QPainter painter(this); - painter.setRenderHint(QPainter::Antialiasing); - painter.drawPixmap(0, 0, width(), height(), QPixmap(":/images/busy_background.png")); -} - BusyIndicator::BusyIndicator(QWidget *parent, int size) : QWidget(parent), startAngle(0), @@ -167,13 +159,14 @@ void BusyIndicator::paintEvent(QPaintEvent *) .arg(m_style); QPixmap pixmap; + pixmap.setDevicePixelRatio(devicePixelRatioF()); QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing); int side = qMin(width(), height()); if (!QPixmapCache::find(key, &pixmap)) { - pixmap = generatePixmap(side); + pixmap = generatePixmap(side * devicePixelRatioF()); QPixmapCache::insert(key, pixmap); } diff --git a/custom_widgets/yacreader_busy_widget.h b/custom_widgets/yacreader_busy_widget.h index 35c90f4b..5963c4d2 100644 --- a/custom_widgets/yacreader_busy_widget.h +++ b/custom_widgets/yacreader_busy_widget.h @@ -9,7 +9,6 @@ class YACReaderBusyWidget : public QWidget Q_OBJECT public: explicit YACReaderBusyWidget(QWidget *parent = 0); - void paintEvent(QPaintEvent *); }; class BusyIndicator : public QWidget diff --git a/images/busy_background.png b/images/busy_background.png deleted file mode 100644 index 4bc83d5b..00000000 Binary files a/images/busy_background.png and /dev/null differ