mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Now that we have the possibility to add images without meaningful time stamps to a dive, we should let the user provide that time offset manually. This patch allowed pictures to be dragged from the image list to the profile. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			507 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef DIVEPICTUREWIDGET_H
 | |
| #define DIVEPICTUREWIDGET_H
 | |
| 
 | |
| #include <QAbstractTableModel>
 | |
| #include <QListView>
 | |
| #include <QThread>
 | |
| #include <QFuture>
 | |
| 
 | |
| class DivePictureWidget : public QListView {
 | |
| 	Q_OBJECT
 | |
| public:
 | |
| 	DivePictureWidget(QWidget *parent);
 | |
| protected:
 | |
| 	void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
 | |
| 
 | |
| signals:
 | |
| 	void photoDoubleClicked(const QString filePath);
 | |
| private
 | |
| slots:
 | |
| 	void doubleClicked(const QModelIndex &index);
 | |
| };
 | |
| 
 | |
| class DivePictureThumbnailThread : public QThread {
 | |
| };
 | |
| 
 | |
| #endif
 |