mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 13:15:43 +08:00
Make startDragging public (#658)
This commit is contained in:
parent
5edbcc1970
commit
952131a1e9
@ -131,15 +131,6 @@ protected:
|
|||||||
virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
|
virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
|
||||||
eDragState DragState, QWidget* MouseEventHandler) override;
|
eDragState DragState, QWidget* MouseEventHandler) override;
|
||||||
|
|
||||||
/**
|
|
||||||
* Call this function to start dragging the floating widget
|
|
||||||
*/
|
|
||||||
void startDragging(const QPoint& DragStartMousePos, const QSize& Size,
|
|
||||||
QWidget* MouseEventHandler)
|
|
||||||
{
|
|
||||||
startFloating(DragStartMousePos, Size, DraggingFloatingWidget, MouseEventHandler);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call this function if you explicitly want to signal that dragging has
|
* Call this function if you explicitly want to signal that dragging has
|
||||||
* finished
|
* finished
|
||||||
@ -236,6 +227,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
CDockContainerWidget* dockContainer() const;
|
CDockContainerWidget* dockContainer() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Call this function to start dragging the floating widget
|
||||||
|
*/
|
||||||
|
void startDragging(const QPoint& DragStartMousePos, const QSize& Size,
|
||||||
|
QWidget* MouseEventHandler)
|
||||||
|
{
|
||||||
|
startFloating(DragStartMousePos, Size, DraggingFloatingWidget, MouseEventHandler);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function returns true, if it can be closed.
|
* This function returns true, if it can be closed.
|
||||||
* It can be closed, if all dock widgets in all dock areas can be closed
|
* It can be closed, if all dock widgets in all dock areas can be closed
|
||||||
|
Loading…
Reference in New Issue
Block a user