@@ -141,7 +141,6 @@ DockWidgetBase::DockWidgetBase(const QString &name, Options options)
141
141
{
142
142
d->init ();
143
143
DockRegistry::self ()->registerDockWidget (this );
144
- qCDebug (creation) << " DockWidget" << this ;
145
144
146
145
if (name.isEmpty ())
147
146
qWarning () << Q_FUNC_INFO << " Name can't be null" ;
@@ -153,13 +152,11 @@ DockWidgetBase::DockWidgetBase(const QString &name, Options options)
153
152
DockWidgetBase::~DockWidgetBase ()
154
153
{
155
154
DockRegistry::self ()->unregisterDockWidget (this );
156
- qCDebug (creation) << " ~DockWidget" << this ;
157
155
delete d;
158
156
}
159
157
160
158
void DockWidgetBase::addDockWidgetAsTab (DockWidgetBase *other, InitialOption option)
161
159
{
162
- qCDebug (addwidget) << Q_FUNC_INFO << other;
163
160
if (other == this ) {
164
161
qWarning () << Q_FUNC_INFO << " Refusing to add dock widget into itself" << other;
165
162
return ;
@@ -240,7 +237,6 @@ void DockWidgetBase::addDockWidgetToContainingWindow(DockWidgetBase *other,
240
237
void DockWidgetBase::setWidget (QWidgetOrQuick *w)
241
238
{
242
239
Q_ASSERT (w);
243
- qCDebug (addwidget) << Q_FUNC_INFO << w;
244
240
if (w == d->widget )
245
241
return ;
246
242
@@ -543,9 +539,6 @@ DockWidgetBase *DockWidgetBase::byName(const QString &uniqueName)
543
539
544
540
FloatingWindow *DockWidgetBase::morphIntoFloatingWindow ()
545
541
{
546
- qCDebug (creation) << " DockWidget::morphIntoFloatingWindow() this=" << this
547
- << " ; visible=" << isVisible ();
548
-
549
542
if (auto fw = floatingWindow ())
550
543
return fw; // Nothing to do
551
544
@@ -597,7 +590,6 @@ FloatingWindow *DockWidgetBase::floatingWindow() const
597
590
598
591
void DockWidgetBase::addPlaceholderItem (Layouting::Item *item)
599
592
{
600
- qCDebug (placeholder) << Q_FUNC_INFO << this << item;
601
593
Q_ASSERT (item);
602
594
d->m_lastPositions .addPosition (item);
603
595
}
@@ -704,7 +696,6 @@ void DockWidgetBase::Private::close()
704
696
m_lastPositions.setLastFloatingGeometry (q->window ()->geometry ());
705
697
}
706
698
707
- qCDebug (hiding) << " DockWidget::close" << this ;
708
699
saveTabIndex ();
709
700
710
701
// Do some cleaning. Widget is hidden, but we must hide the tab containing it.
@@ -739,7 +730,6 @@ void DockWidgetBase::Private::maybeRestoreToPreviousPosition()
739
730
return ;
740
731
741
732
Layouting::Item *layoutItem = m_lastPositions.lastItem ();
742
- qCDebug (placeholder) << Q_FUNC_INFO << layoutItem << m_lastPositions;
743
733
if (!layoutItem)
744
734
return ; // nothing to do, no last position
745
735
@@ -751,15 +741,13 @@ void DockWidgetBase::Private::maybeRestoreToPreviousPosition()
751
741
if (frame && frame->QWidgetAdapter ::parentWidget () == DockRegistry::self ()->layoutForItem (layoutItem)) {
752
742
// There's a frame already. Means the DockWidget was hidden instead of closed.
753
743
// Nothing to do, the dock widget will simply be shown
754
- qCDebug (placeholder) << Q_FUNC_INFO << " Already had frame." ;
755
744
return ;
756
745
}
757
746
758
747
// Now we deal with the case where the DockWidget was close()ed. In this case it doesn't have a parent.
759
748
760
749
if (q->parentWidget ()) {
761
750
// The QEvent::Show is due to it being made floating. Nothing to restore.
762
- qCDebug (placeholder) << Q_FUNC_INFO << " Already had parentWidget" ;
763
751
return ;
764
752
}
765
753
0 commit comments