MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The DraggableFramelessWidget class provides draggable and frameless QWidget. More...
#include <draggableframelesswidget.h>
Public Types | |
typedef QSharedPointer< DraggableFramelessWidget > | SPtr |
typedef QSharedPointer< const DraggableFramelessWidget > | ConstSPtr |
Public Member Functions | |
DraggableFramelessWidget (QWidget *parent=0, Qt::WindowFlags flags=Qt::Window, bool bRoundEdges=false, bool bDraggable=true, bool bFrameless=true) | |
~DraggableFramelessWidget () | |
void | setDraggable (bool bFlag) |
Protected Member Functions | |
void | mouseMoveEvent (QMouseEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | resizeEvent (QResizeEvent *event) |
QRegion | roundedRect (const QRect &rect, int r) |
The DraggableFramelessWidget class provides draggable and frameless QWidget.
DECLARE CLASS DraggableFramelessWidget
Definition at line 75 of file draggableframelesswidget.h.
typedef QSharedPointer<const DraggableFramelessWidget> DISPLIB::DraggableFramelessWidget::ConstSPtr |
Const shared pointer type for DraggableFramelessWidget.
Definition at line 81 of file draggableframelesswidget.h.
typedef QSharedPointer<DraggableFramelessWidget> DISPLIB::DraggableFramelessWidget::SPtr |
Shared pointer type for DraggableFramelessWidget.
Definition at line 80 of file draggableframelesswidget.h.
DraggableFramelessWidget::DraggableFramelessWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | flags = Qt::Window , |
||
bool | bRoundEdges = false , |
||
bool | bDraggable = true , |
||
bool | bFrameless = true |
||
) |
Constructs a DraggableFramelessWidget which is a child of parent.
[in] | parent | The parent of the widget. |
[in] | flags | The window flags. |
[in] | bRoundEdges | Flag specifying whether to round the edges. |
[in] | bDraggable | Flag specifying whether this widget is draggable. |
[in] | bFrameless | Flag specifying whether this widget is frameless. |
Definition at line 62 of file draggableframelesswidget.cpp.
DraggableFramelessWidget::~DraggableFramelessWidget | ( | ) |
Destructs a DraggableFramelessWidget
Definition at line 78 of file draggableframelesswidget.cpp.
|
protected |
Reimplmented mouseMoveEvent.
Definition at line 106 of file draggableframelesswidget.cpp.
|
protected |
Reimplmented mouseMoveEvent.
Definition at line 91 of file draggableframelesswidget.cpp.
|
protected |
Reimplmented mouseReleaseEvent.
Definition at line 120 of file draggableframelesswidget.cpp.
|
protected |
Reimplmented mouseMoveEvent.
Definition at line 129 of file draggableframelesswidget.cpp.
|
protected |
Calculates a rect with rounded edged.
[in] | rect | the rect which is supposed to be rounded. |
[in] | r | the radius of round edges. |
Definition at line 138 of file draggableframelesswidget.cpp.
void DraggableFramelessWidget::setDraggable | ( | bool | bFlag | ) |
Set the draggable flag of this widget.
[in] | bFlag | the flag to set. |
Definition at line 84 of file draggableframelesswidget.cpp.