Show fullsize cover on doubleclick
This commit is contained in:
parent
ea47fae31e
commit
b386ca14df
@ -474,8 +474,12 @@ void PlayingWidget::contextMenuEvent(QContextMenuEvent* e) {
|
||||
menu_->popup(mapToGlobal(e->pos()));
|
||||
}
|
||||
|
||||
void PlayingWidget::mouseReleaseEvent(QMouseEvent*) {
|
||||
void PlayingWidget::mouseDoubleClickEvent(QMouseEvent* e) {
|
||||
|
||||
// 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 resizeEvent(QResizeEvent*);
|
||||
void contextMenuEvent(QContextMenuEvent *e);
|
||||
void mouseReleaseEvent(QMouseEvent*);
|
||||
void mouseDoubleClickEvent(QMouseEvent*);
|
||||
void dragEnterEvent(QDragEnterEvent *e);
|
||||
void dropEvent(QDropEvent *e);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user