add drag and drop support

This commit is contained in:
Anakin
2017-01-03 11:47:27 +01:00
parent ae84c55559
commit 0fefc6168b
2 changed files with 15 additions and 1 deletions

View File

@@ -21,6 +21,9 @@ public:
explicit OglViewerWidget(QWidget *parent = 0);
~OglViewerWidget();
signals:
void loadFile(const char*);
private:
struct {
bool left = false;
@@ -40,6 +43,7 @@ protected:
void mouseReleaseEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *e) Q_DECL_OVERRIDE;
void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent * event) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;