@@ -103,7 +103,6 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
103
103
{
104
104
if (!_this->isVisible () || !DockManager)
105
105
{
106
- std::cout << " return 1" << std::endl;
107
106
return ;
108
107
}
109
108
@@ -132,13 +131,10 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
132
131
133
132
if (!TopContainer)
134
133
{
135
- std::cout << " ContainerOverlay->hideOverlay() 1" << std::endl;
136
134
ContainerOverlay->hideOverlay ();
137
- std::cout << " DockAreaOverlay->hideOverlay() 1" << std::endl;
138
135
DockAreaOverlay->hideOverlay ();
139
136
if (CDockManager::testConfigFlag (CDockManager::DragPreviewIsDynamic))
140
137
{
141
- std::cout << " return 2" << std::endl;
142
138
setHidden (false );
143
139
}
144
140
return ;
@@ -155,7 +151,6 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
155
151
{
156
152
VisibleDockAreas++;
157
153
}
158
- std::cout << " VisibleDockAreas " << VisibleDockAreas << std::endl;
159
154
160
155
DockWidgetAreas AllowedAreas = (VisibleDockAreas > 1 ) ? OuterDockAreas : AllDockAreas;
161
156
// ContainerOverlay->enableDropPreview(ContainerDropArea != InvalidDockWidgetArea);
@@ -168,12 +163,12 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
168
163
AllowedAreas.setFlag (CenterDockWidgetArea, DockArea->allowedAreas ().testFlag (CenterDockWidgetArea));
169
164
}
170
165
ContainerOverlay->setAllowedAreas (AllowedAreas);
166
+ ContainerOverlay->enableDropPreview (ContainerDropArea != InvalidDockWidgetArea);
171
167
if (DockArea && DockArea->isVisible () && VisibleDockAreas >= 0 && DockArea != ContentSourceArea)
172
168
{
173
169
DockAreaOverlay->enableDropPreview (true );
174
170
DockAreaOverlay->setAllowedAreas ( (VisibleDockAreas == 1 ) ? NoDockWidgetArea : DockArea->allowedAreas ());
175
171
DockWidgetArea Area = DockAreaOverlay->showOverlay (DockArea);
176
- std::cout << " DockWidgetArea " << Area << std::endl;
177
172
178
173
// A CenterDockWidgetArea for the dockAreaOverlay() indicates that
179
174
// the mouse is in the title bar. If the ContainerArea is valid
@@ -182,20 +177,16 @@ void FloatingDragPreviewPrivate::updateDropOverlays(const QPoint &GlobalPos)
182
177
if ((Area == CenterDockWidgetArea) && (ContainerDropArea != InvalidDockWidgetArea))
183
178
{
184
179
DockAreaOverlay->enableDropPreview (false );
185
-
186
- std::cout << " ContainerOverlay->enableDropPreview(true) 1" << std::endl;
187
180
ContainerOverlay->enableDropPreview (true );
188
181
}
189
182
else
190
183
{
191
- std::cout << " ContainerOverlay->enableDropPreview 2" << std::endl;
192
184
ContainerOverlay->enableDropPreview (InvalidDockWidgetArea == Area);
193
185
}
194
186
ContainerOverlay->showOverlay (TopContainer);
195
187
}
196
188
else
197
189
{
198
- std::cout << " DockAreaOverlay->hideOverlay() 2" << std::endl;
199
190
DockAreaOverlay->hideOverlay ();
200
191
// If there is only one single visible dock area in a container, then
201
192
// it does not make sense to show a dock overlay because the dock area
0 commit comments