diff --git a/SnapmaticWidget.cpp b/SnapmaticWidget.cpp index ee927ff..2b40926 100755 --- a/SnapmaticWidget.cpp +++ b/SnapmaticWidget.cpp @@ -89,3 +89,9 @@ void SnapmaticWidget::on_cmdDelete_clicked() } } } + +void SnapmaticWidget::mouseDoubleClickEvent(QMouseEvent *ev) +{ + QWidget::mouseDoubleClickEvent(ev); + on_cmdView_clicked(); +} diff --git a/SnapmaticWidget.h b/SnapmaticWidget.h index c2e3a07..9437afe 100755 --- a/SnapmaticWidget.h +++ b/SnapmaticWidget.h @@ -22,6 +22,7 @@ #include "SnapmaticPicture.h" #include "ProfileDatabase.h" #include "DatabaseThread.h" +#include #include namespace Ui { @@ -41,6 +42,9 @@ private slots: void on_cmdView_clicked(); void on_cmdDelete_clicked(); +protected: + void mouseDoubleClickEvent(QMouseEvent *ev); + private: ProfileDatabase *profileDB; DatabaseThread *threadDB;