Added left-click to show fullsize cover on NowPlayingWidget.

This intuitively mirrors the behaviour of clicking an image in the Artist Info page
This commit is contained in:
alecksphillips 2014-06-22 18:18:23 +01:00
parent 03eb241c00
commit a9c944e42a
2 changed files with 8 additions and 0 deletions

View File

@ -534,6 +534,13 @@ void NowPlayingWidget::contextMenuEvent(QContextMenuEvent* e) {
menu_->popup(mapToGlobal(e->pos()));
}
void NowPlayingWidget::mouseReleaseEvent(QMouseEvent *) {
//Same behaviour as right-click > Show Fullsize
if((!aww_) && !(static_cast<bool>(hypnotoad_))){
ShowCover();
}
}
void NowPlayingWidget::ShowAboveStatusBar(bool above) {
QSettings s;
s.beginGroup(kSettingsGroup);

View File

@ -79,6 +79,7 @@ signals:
void paintEvent(QPaintEvent* e);
void resizeEvent(QResizeEvent*);
void contextMenuEvent(QContextMenuEvent* e);
void mouseReleaseEvent(QMouseEvent *);
void dragEnterEvent(QDragEnterEvent* e);
void dropEvent(QDropEvent* e);