diff --git a/res/images/CD.png b/res/images/CD.png index 36e8a29f..55c2b8f5 100644 Binary files a/res/images/CD.png and b/res/images/CD.png differ diff --git a/src/Dialog_MainWindow.cpp b/src/Dialog_MainWindow.cpp index d20bd26c..063d39a2 100644 --- a/src/Dialog_MainWindow.cpp +++ b/src/Dialog_MainWindow.cpp @@ -889,7 +889,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event) } } - return false; + return QMainWindow::eventFilter(obj, event); } bool MainWindow::winEvent(MSG *message, long *result) diff --git a/src/Dialog_MetaInfo.cpp b/src/Dialog_MetaInfo.cpp index 325b40d7..990b1d16 100644 --- a/src/Dialog_MetaInfo.cpp +++ b/src/Dialog_MetaInfo.cpp @@ -80,6 +80,9 @@ MetaInfoDialog::MetaInfoDialog(QWidget *parent) connect(loadArtworkAction, SIGNAL(triggered(bool)), this, SLOT(editButtonClicked())); connect(clearArtworkAction, SIGNAL(triggered(bool)), this, SLOT(clearArtworkActionTriggered())); + //Install event filter + labelArtwork->installEventFilter(this); + //Translate labelHeaderText->setText(QString("%1
%2").arg(tr("Meta Information"), tr("The following meta information have been extracted from the original file."))); } @@ -221,3 +224,14 @@ void MetaInfoDialog::clearArtworkActionTriggered(void) labelArtwork->setPixmap(QPixmap::fromImage(QImage(":/images/CD.png"))); dynamic_cast(tableView->model())->editArtwork(QString()); } + +bool MetaInfoDialog::eventFilter(QObject *obj, QEvent *event) +{ + if((obj == labelArtwork) && (event->type() == QEvent::MouseButtonDblClick)) + { + editButtonClicked(); + return true; + } + + return QDialog::eventFilter(obj, event); +} diff --git a/src/Dialog_MetaInfo.h b/src/Dialog_MetaInfo.h index ff700ac4..b4426a6e 100644 --- a/src/Dialog_MetaInfo.h +++ b/src/Dialog_MetaInfo.h @@ -46,6 +46,9 @@ private slots: void clearMetaInfoActionTriggered(void); void clearArtworkActionTriggered(void); +protected: + bool eventFilter(QObject *obj, QEvent *event); + private: QMenu *m_contextMenuInfo; QMenu *m_contextMenuArtwork;