Added FloatingWidgetDragStartEvent to hide AutoHideContainer if user drags floating widget
This commit is contained in:
@@ -406,7 +406,13 @@ struct FloatingDockContainerPrivate
|
||||
|
||||
void setState(eDragState StateId)
|
||||
{
|
||||
auto OldState = DraggingState;
|
||||
DraggingState = StateId;
|
||||
if (DraggingInactive == OldState && DraggingFloatingWidget == DraggingState)
|
||||
{
|
||||
qDebug() << "Start dragging floating widget " << internal::FloatingWidgetDragStartEvent;
|
||||
qApp->postEvent(DockManager, new QEvent((QEvent::Type)internal::FloatingWidgetDragStartEvent));
|
||||
}
|
||||
}
|
||||
|
||||
void setWindowTitle(const QString &Text)
|
||||
@@ -1281,12 +1287,13 @@ void CFloatingDockContainer::moveEvent(QMoveEvent *event)
|
||||
Super::moveEvent(event);
|
||||
if (!d->IsResizing && event->spontaneous() && s_mousePressed)
|
||||
{
|
||||
d->DraggingState = DraggingFloatingWidget;
|
||||
d->setState(DraggingFloatingWidget);
|
||||
d->updateDropOverlays(QCursor::pos());
|
||||
}
|
||||
d->IsResizing = false;
|
||||
}
|
||||
|
||||
|
||||
//============================================================================
|
||||
bool CFloatingDockContainer::event(QEvent *e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user