##// END OF EJS Templates
Link between selection zone item and event
Link between selection zone item and event

File last commit:

r1087:d404ba4b75e5
r1347:12c6415397ca
Show More
VisualizationDragWidget.h
34 lines | 1.1 KiB | text/x-c | CLexer
/ gui / include / Visualization / VisualizationDragWidget.h
Fixes for review
r849 #ifndef SCIQLOP_VISUALIZATIONDRAGWIDGET_H
#define SCIQLOP_VISUALIZATIONDRAGWIDGET_H
New visualization classes for the drag&drop
r841
#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
drag of selection zones
r1087 virtual QMimeData *mimeData(const QPoint &position) const = 0;
New visualization classes for the drag&drop
r841 virtual bool isDragAllowed() const = 0;
drag of selection zones
r1087 virtual void highlightForMerge(bool highlighted) { Q_UNUSED(highlighted); }
/// Custom pixmap to display during a drag operation.
/// If the provided pixmap is null, a pixmap of the entire widget is used.
virtual QPixmap customDragPixmap(const QPoint &dragPosition);
New visualization classes for the drag&drop
r841
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 };
Fixes for review
r849 #endif // SCIQLOP_VISUALIZATIONDRAGWIDGET_H