File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,10 @@ void CDockWidget::toggleViewInternal(bool Open)
459
459
CDockWidget::emitTopLevelEventForWidget (TopLevelDockWidgetBefore, false );
460
460
}
461
461
462
+ // Here we need to call the dockContainer() function again, because if
463
+ // this dock widget was unassigned before the call to showDockWidget() then
464
+ // it has a dock container now
465
+ DockContainer = dockContainer ();
462
466
CDockWidget* TopLevelDockWidgetAfter = DockContainer
463
467
? DockContainer->topLevelDockWidget () : nullptr ;
464
468
CDockWidget::emitTopLevelEventForWidget (TopLevelDockWidgetAfter, true );
Original file line number Diff line number Diff line change 37
37
#include < QAction>
38
38
#include < QDebug>
39
39
#include < QAbstractButton>
40
+ #include < QElapsedTimer>
40
41
41
42
#include " DockContainerWidget.h"
42
43
#include " DockAreaWidget.h"
43
44
#include " DockManager.h"
44
45
#include " DockWidget.h"
45
46
#include " DockOverlay.h"
46
47
48
+ #include < iostream>
47
49
48
50
namespace ads
49
51
{
@@ -148,6 +150,10 @@ void FloatingDockContainerPrivate::titleMouseReleaseEvent()
148
150
// ============================================================================
149
151
void FloatingDockContainerPrivate::updateDropOverlays (const QPoint& GlobalPos)
150
152
{
153
+ static QElapsedTimer MsSinceLastCallTimer;
154
+ QElapsedTimer PerformanceTimer;
155
+ PerformanceTimer.start ();
156
+
151
157
if (!_this->isVisible () || !DockManager)
152
158
{
153
159
return ;
@@ -219,6 +225,8 @@ void FloatingDockContainerPrivate::updateDropOverlays(const QPoint& GlobalPos)
219
225
{
220
226
DockAreaOverlay->hideOverlay ();
221
227
}
228
+
229
+ std::cout << " updateDropOverlays us: " << PerformanceTimer.nsecsElapsed () / 1000 << std::endl;
222
230
}
223
231
224
232
You can’t perform that action at this time.
0 commit comments