##// END OF EJS Templates
Format changes
Format changes

File last commit:

r847:90e991aec5fa
r847:90e991aec5fa
Show More
VisualizationDragWidget.h
29 lines | 776 B | text/x-c | CLexer
/ gui / include / Visualization / VisualizationDragWidget.h
New visualization classes for the drag&drop
r841 #ifndef VISUALIZATIONDRAGWIDGET_H
#define VISUALIZATIONDRAGWIDGET_H
#include <Common/spimpl.h>
Format changes
r847 #include <QMimeData>
#include <QWidget>
New visualization classes for the drag&drop
r841
Format changes
r847 class VisualizationDragWidget : public QWidget {
New visualization classes for the drag&drop
r841 Q_OBJECT
public:
Format changes
r847 VisualizationDragWidget(QWidget *parent = nullptr);
New visualization classes for the drag&drop
r841
Format changes
r847 virtual QMimeData *mimeData() const = 0;
New visualization classes for the drag&drop
r841 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:
Format changes
r847 void dragDetected(VisualizationDragWidget *dragWidget, const QPoint &dragPosition);
New visualization classes for the drag&drop
r841 };
#endif // VISUALIZATIONDRAGWIDGET_H