Show fullsize cover on doubleclick
This commit is contained in:
@@ -474,8 +474,12 @@ void PlayingWidget::contextMenuEvent(QContextMenuEvent* e) {
|
|||||||
menu_->popup(mapToGlobal(e->pos()));
|
menu_->popup(mapToGlobal(e->pos()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PlayingWidget::mouseReleaseEvent(QMouseEvent*) {
|
void PlayingWidget::mouseDoubleClickEvent(QMouseEvent* e) {
|
||||||
|
|
||||||
// Same behaviour as right-click > Show Fullsize
|
// Same behaviour as right-click > Show Fullsize
|
||||||
|
if (e->button() == Qt::LeftButton && song_.is_valid()) {
|
||||||
|
album_cover_choice_controller_->ShowCover(song_, image_original_);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ class PlayingWidget : public QWidget {
|
|||||||
void paintEvent(QPaintEvent *e);
|
void paintEvent(QPaintEvent *e);
|
||||||
void resizeEvent(QResizeEvent*);
|
void resizeEvent(QResizeEvent*);
|
||||||
void contextMenuEvent(QContextMenuEvent *e);
|
void contextMenuEvent(QContextMenuEvent *e);
|
||||||
void mouseReleaseEvent(QMouseEvent*);
|
void mouseDoubleClickEvent(QMouseEvent*);
|
||||||
void dragEnterEvent(QDragEnterEvent *e);
|
void dragEnterEvent(QDragEnterEvent *e);
|
||||||
void dropEvent(QDropEvent *e);
|
void dropEvent(QDropEvent *e);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user