Skip to content

Commit 306bf26

Browse files
committed
Remove some qCDebug I never needed
1 parent e07fb7f commit 306bf26

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/DockWidgetBase.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ DockWidgetBase::DockWidgetBase(const QString &name, Options options)
141141
{
142142
d->init();
143143
DockRegistry::self()->registerDockWidget(this);
144-
qCDebug(creation) << "DockWidget" << this;
145144

146145
if (name.isEmpty())
147146
qWarning() << Q_FUNC_INFO << "Name can't be null";
@@ -153,13 +152,11 @@ DockWidgetBase::DockWidgetBase(const QString &name, Options options)
153152
DockWidgetBase::~DockWidgetBase()
154153
{
155154
DockRegistry::self()->unregisterDockWidget(this);
156-
qCDebug(creation) << "~DockWidget" << this;
157155
delete d;
158156
}
159157

160158
void DockWidgetBase::addDockWidgetAsTab(DockWidgetBase *other, InitialOption option)
161159
{
162-
qCDebug(addwidget) << Q_FUNC_INFO << other;
163160
if (other == this) {
164161
qWarning() << Q_FUNC_INFO << "Refusing to add dock widget into itself" << other;
165162
return;
@@ -240,7 +237,6 @@ void DockWidgetBase::addDockWidgetToContainingWindow(DockWidgetBase *other,
240237
void DockWidgetBase::setWidget(QWidgetOrQuick *w)
241238
{
242239
Q_ASSERT(w);
243-
qCDebug(addwidget) << Q_FUNC_INFO << w;
244240
if (w == d->widget)
245241
return;
246242

@@ -543,9 +539,6 @@ DockWidgetBase *DockWidgetBase::byName(const QString &uniqueName)
543539

544540
FloatingWindow *DockWidgetBase::morphIntoFloatingWindow()
545541
{
546-
qCDebug(creation) << "DockWidget::morphIntoFloatingWindow() this=" << this
547-
<< "; visible=" << isVisible();
548-
549542
if (auto fw = floatingWindow())
550543
return fw; // Nothing to do
551544

@@ -597,7 +590,6 @@ FloatingWindow *DockWidgetBase::floatingWindow() const
597590

598591
void DockWidgetBase::addPlaceholderItem(Layouting::Item *item)
599592
{
600-
qCDebug(placeholder) << Q_FUNC_INFO << this << item;
601593
Q_ASSERT(item);
602594
d->m_lastPositions.addPosition(item);
603595
}
@@ -704,7 +696,6 @@ void DockWidgetBase::Private::close()
704696
m_lastPositions.setLastFloatingGeometry(q->window()->geometry());
705697
}
706698

707-
qCDebug(hiding) << "DockWidget::close" << this;
708699
saveTabIndex();
709700

710701
// Do some cleaning. Widget is hidden, but we must hide the tab containing it.
@@ -739,7 +730,6 @@ void DockWidgetBase::Private::maybeRestoreToPreviousPosition()
739730
return;
740731

741732
Layouting::Item *layoutItem = m_lastPositions.lastItem();
742-
qCDebug(placeholder) << Q_FUNC_INFO << layoutItem << m_lastPositions;
743733
if (!layoutItem)
744734
return; // nothing to do, no last position
745735

@@ -751,15 +741,13 @@ void DockWidgetBase::Private::maybeRestoreToPreviousPosition()
751741
if (frame && frame->QWidgetAdapter::parentWidget() == DockRegistry::self()->layoutForItem(layoutItem)) {
752742
// There's a frame already. Means the DockWidget was hidden instead of closed.
753743
// Nothing to do, the dock widget will simply be shown
754-
qCDebug(placeholder) << Q_FUNC_INFO << "Already had frame.";
755744
return;
756745
}
757746

758747
// Now we deal with the case where the DockWidget was close()ed. In this case it doesn't have a parent.
759748

760749
if (q->parentWidget()) {
761750
// The QEvent::Show is due to it being made floating. Nothing to restore.
762-
qCDebug(placeholder) << Q_FUNC_INFO << "Already had parentWidget";
763751
return;
764752
}
765753

0 commit comments

Comments
 (0)