Skip to content

Commit

Permalink
Make startDragging public (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavininfinity authored Aug 19, 2024
1 parent 5edbcc1 commit 952131a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/FloatingDockContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,6 @@ private Q_SLOTS:
virtual void startFloating(const QPoint& DragStartMousePos, const QSize& Size,
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
* finished
Expand All @@ -149,7 +140,7 @@ private Q_SLOTS:
/**
* This function deletes all dock widgets in it.
* This functions should be called only from dock manager in its
* destructor before deleting the floating widget
* destructor before deleting the floating widget
*/
void deleteContent();

Expand Down Expand Up @@ -236,6 +227,15 @@ private Q_SLOTS:
*/
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.
* It can be closed, if all dock widgets in all dock areas can be closed
Expand Down

0 comments on commit 952131a

Please sign in to comment.