##// END OF EJS Templates
MR for linux compilation
MR for linux compilation

File last commit:

r847:90e991aec5fa
r848:89fbdd3d4a7b
Show More
VisualizationDragWidget.h
29 lines | 776 B | text/x-c | CLexer
#ifndef VISUALIZATIONDRAGWIDGET_H
#define VISUALIZATIONDRAGWIDGET_H
#include <Common/spimpl.h>
#include <QMimeData>
#include <QWidget>
class VisualizationDragWidget : public QWidget {
Q_OBJECT
public:
VisualizationDragWidget(QWidget *parent = nullptr);
virtual QMimeData *mimeData() const = 0;
virtual bool isDragAllowed() const = 0;
protected:
virtual void mousePressEvent(QMouseEvent *event) override;
virtual void mouseMoveEvent(QMouseEvent *event) override;
private:
class VisualizationDragWidgetPrivate;
spimpl::unique_impl_ptr<VisualizationDragWidgetPrivate> impl;
signals:
void dragDetected(VisualizationDragWidget *dragWidget, const QPoint &dragPosition);
};
#endif // VISUALIZATIONDRAGWIDGET_H