Snapmatic Pictures open now with double click at the ProfileInterface
This commit is contained in:
		
							parent
							
								
									e6bfb97cc8
								
							
						
					
					
						commit
						9062c88aea
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -89,3 +89,9 @@ void SnapmaticWidget::on_cmdDelete_clicked()
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void SnapmaticWidget::mouseDoubleClickEvent(QMouseEvent *ev)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    QWidget::mouseDoubleClickEvent(ev);
 | 
				
			||||||
 | 
					    on_cmdView_clicked();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,6 +22,7 @@
 | 
				
			||||||
#include "SnapmaticPicture.h"
 | 
					#include "SnapmaticPicture.h"
 | 
				
			||||||
#include "ProfileDatabase.h"
 | 
					#include "ProfileDatabase.h"
 | 
				
			||||||
#include "DatabaseThread.h"
 | 
					#include "DatabaseThread.h"
 | 
				
			||||||
 | 
					#include <QMouseEvent>
 | 
				
			||||||
#include <QWidget>
 | 
					#include <QWidget>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Ui {
 | 
					namespace Ui {
 | 
				
			||||||
| 
						 | 
					@ -41,6 +42,9 @@ private slots:
 | 
				
			||||||
    void on_cmdView_clicked();
 | 
					    void on_cmdView_clicked();
 | 
				
			||||||
    void on_cmdDelete_clicked();
 | 
					    void on_cmdDelete_clicked();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					protected:
 | 
				
			||||||
 | 
					    void mouseDoubleClickEvent(QMouseEvent *ev);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
private:
 | 
					private:
 | 
				
			||||||
    ProfileDatabase *profileDB;
 | 
					    ProfileDatabase *profileDB;
 | 
				
			||||||
    DatabaseThread *threadDB;
 | 
					    DatabaseThread *threadDB;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue