Snapmatic Pictures open now with double click at the ProfileInterface

This commit is contained in:
Rafael 2016-04-02 19:41:11 +02:00
parent e6bfb97cc8
commit 9062c88aea
2 changed files with 10 additions and 0 deletions

View file

@ -89,3 +89,9 @@ void SnapmaticWidget::on_cmdDelete_clicked()
}
}
}
void SnapmaticWidget::mouseDoubleClickEvent(QMouseEvent *ev)
{
QWidget::mouseDoubleClickEvent(ev);
on_cmdView_clicked();
}

View file

@ -22,6 +22,7 @@
#include "SnapmaticPicture.h"
#include "ProfileDatabase.h"
#include "DatabaseThread.h"
#include <QMouseEvent>
#include <QWidget>
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;