From 464db5e697326728069e13569c729d298c2ce098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Fri, 24 Jan 2025 11:30:39 +0100 Subject: [PATCH] Remove some comments. --- .../general/layout_containers/flow_widget.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/cockatrice/src/client/ui/widgets/general/layout_containers/flow_widget.cpp b/cockatrice/src/client/ui/widgets/general/layout_containers/flow_widget.cpp index d95fde106..a413d2927 100644 --- a/cockatrice/src/client/ui/widgets/general/layout_containers/flow_widget.cpp +++ b/cockatrice/src/client/ui/widgets/general/layout_containers/flow_widget.cpp @@ -85,15 +85,6 @@ FlowWidget::FlowWidget(QWidget *parent, */ void FlowWidget::addWidget(QWidget *widget_to_add) const { - // Adjust size policy if scrollbars are disabled - // if (scrollArea->horizontalScrollBarPolicy() == Qt::ScrollBarAlwaysOff) { - // widget_to_add->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Preferred); - //} - // if (scrollArea->verticalScrollBarPolicy() == Qt::ScrollBarAlwaysOff) { - // widget_to_add->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum); - //} - - // Add the widget to the flow layout flowLayout->addWidget(widget_to_add); } @@ -132,8 +123,6 @@ void FlowWidget::resizeEvent(QResizeEvent *event) { QWidget::resizeEvent(event); - qCDebug(FlowWidgetSizeLog) << event->size(); - // Trigger the layout to recalculate if (flowLayout != nullptr) { flowLayout->invalidate(); // Marks the layout as dirty and requires recalculation @@ -142,10 +131,8 @@ void FlowWidget::resizeEvent(QResizeEvent *event) // Ensure the scroll area and its content adjust correctly if (scrollArea != nullptr && scrollArea->widget() != nullptr) { - qCDebug(FlowWidgetSizeLog) << "Got a scrollarea: " << scrollArea->widget()->size(); scrollArea->widget()->adjustSize(); } else { - qCDebug(FlowWidgetSizeLog) << "Rawdogging the container, daddy: " << container->size(); container->adjustSize(); } }