From ab91d9193afde66897e6f74cd429fe7861a80407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Fri, 2 Oct 2020 20:31:00 +0200 Subject: [PATCH] Remove duplicated setLayout on HistogramStatsWidget. It's already set in the .ui file. Quiets down this: WARNING - QWidget::setLayout: Attempting to set QLayout "" on QWidget "statsWidget", which already has a layout --- src/widgets/histogramwidget.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/widgets/histogramwidget.cpp b/src/widgets/histogramwidget.cpp index 3419acd..d38f42f 100644 --- a/src/widgets/histogramwidget.cpp +++ b/src/widgets/histogramwidget.cpp @@ -66,7 +66,6 @@ HistogramWidget::HistogramWidget(const HistogramPtr &histogram, Configuration &c connect(d->ui->histogram_logarithmic, &QCheckBox::toggled, this, bind(&Private::toggle_histogram_logarithmic, d.get(), _1)); connect(d->ui->channel, F_PTR(QComboBox, currentIndexChanged, int), this, [this](int index) { d->histogram->setChannel(d->channel_combo_indexes.key(index)); }); d->toggle_histogram_logarithmic(configuration.histogram_logarithmic()); - d->ui->statsWidget->setLayout(new QVBoxLayout); } void HistogramWidget::Private::toggle_histogram_logarithmic(bool logarithmic)