From 9062c88aea2a3d49cae59131706a569c72103e53 Mon Sep 17 00:00:00 2001 From: Rafael Date: Sat, 2 Apr 2016 19:41:11 +0200 Subject: [PATCH] Snapmatic Pictures open now with double click at the ProfileInterface --- SnapmaticWidget.cpp | 6 ++++++ SnapmaticWidget.h | 4 ++++ 2 files changed, 10 insertions(+) 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;