File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -241,21 +241,23 @@ bool DockWidgetTabPrivate::startFloating(eDragState DraggingState)
241
241
242
242
ADS_PRINT (" startFloating" );
243
243
DragState = DraggingState;
244
- QSize Size = DockArea->size ();
245
244
IFloatingWidget* FloatingWidget = nullptr ;
246
245
bool OpaqueUndocking = CDockManager::configFlags ().testFlag (CDockManager::OpaqueUndocking) ||
247
246
(DraggingFloatingWidget != DraggingState);
248
247
249
248
// If section widget has multiple tabs, we take only one tab
250
249
// If it has only one single tab, we can move the complete
251
250
// dock area into floating widget
251
+ QSize Size;
252
252
if (DockArea->dockWidgetsCount () > 1 )
253
253
{
254
254
FloatingWidget = createFloatingWidget (DockWidget, OpaqueUndocking);
255
+ Size = DockWidget->size ();
255
256
}
256
257
else
257
258
{
258
259
FloatingWidget = createFloatingWidget (DockArea, OpaqueUndocking);
260
+ Size = DockArea->size ();
259
261
}
260
262
261
263
if (DraggingFloatingWidget == DraggingState)
You can’t perform that action at this time.
0 commit comments