Fix minor code issues

This commit is contained in:
Jonas Kvinge
2019-09-15 20:27:32 +02:00
parent 83e10aac27
commit 2d67279180
147 changed files with 644 additions and 329 deletions

View File

@@ -535,6 +535,8 @@ void ContextView::handlePaintEvent(QObject *object, QEvent *event) {
void ContextView::PaintEventAlbum(QEvent *event) {
Q_UNUSED(event);
QPainter p(ui_->label_play_album);
DrawImage(&p);
@@ -544,6 +546,7 @@ void ContextView::PaintEventAlbum(QEvent *event) {
p.setOpacity(pixmap_previous_opacity_);
p.drawPixmap(0, 0, pixmap_previous_);
}
}
void ContextView::DrawImage(QPainter *p) {
@@ -595,6 +598,8 @@ void ContextView::ScaleCover() {
void ContextView::AlbumCoverLoaded(const Song &song, const QUrl &cover_url, const QImage &image) {
Q_UNUSED(cover_url);
if (song != song_playing_ || image == image_original_) return;
active_ = true;