35 #ifndef DRAGGABLEFRAMELESSWIDGET_H
36 #define DRAGGABLEFRAMELESSWIDGET_H
42 #include "../../disp_global.h"
80 typedef QSharedPointer<DraggableFramelessWidget>
SPtr;
81 typedef QSharedPointer<const DraggableFramelessWidget>
ConstSPtr;
94 Qt::WindowFlags flags = Qt::Window,
95 bool bRoundEdges =
false,
96 bool bDraggable =
true,
97 bool bFrameless =
true);
111 void setDraggable(
bool bFlag);
118 void mouseMoveEvent(QMouseEvent *event);
124 void mousePressEvent(QMouseEvent *event);
130 void mouseReleaseEvent(QMouseEvent *event);
136 void resizeEvent(QResizeEvent *event);
146 QRegion roundedRect(
const QRect& rect,
int r);
149 QPoint m_dragPosition;
152 bool m_bMousePressed;
156 #endif // DRAGGABLEFRAMELESSWIDGET_H