30 class DragHandle :
public QLabel {
33 explicit DragHandle(QWidget *parent =
nullptr, Qt::WindowFlags f =
nullptr);
34 void mousePressEvent(QMouseEvent *ev)
override;
35 void mouseReleaseEvent(QMouseEvent *ev)
override;
36 void mouseMoveEvent(QMouseEvent *ev)
override;
38 void setPanel(tlp::WorkspacePanel *panel);
41 tlp::WorkspacePanel *_panel;
43 QPoint _clickPosition;
46 #endif //_DRAGHANDLE_H