Fix minor code issues
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user