##// END OF EJS Templates
Sets the name of the plugin for products and components...
Sets the name of the plugin for products and components Since there is only one common root in the data source widget, it is no longer possible to retrieve on the fly the name of the plugin in which a component or product is located. This name is therefore attached to their creation.

File last commit:

r879:5662e2f354c4
r1076:9c3bb5e93c54
Show More
VisualizationDragWidget.h
30 lines | 882 B | text/x-c | CLexer
#ifndef SCIQLOP_VISUALIZATIONDRAGWIDGET_H
#define SCIQLOP_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;
virtual void highlightForMerge(bool highlighted) { Q_UNUSED(highlighted); };
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 // SCIQLOP_VISUALIZATIONDRAGWIDGET_H