From 86a26e62f473d4f428814813a453b5fd97b85abf Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 18 Nov 2023 22:22:11 -0500 Subject: Fix extraneous margin around status info widget --- src/widgets/status_info.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/status_info.cpp b/src/widgets/status_info.cpp index 847aec4..8ff90df 100644 --- a/src/widgets/status_info.cpp +++ b/src/widgets/status_info.cpp @@ -8,6 +8,8 @@ StatusInfoWidget::StatusInfoWidget(QWidget* parent) : QWidget(parent), ui(new Ui::StatusInfo) { ui->setupUi(this); + // QGridLayouts have margins around each element, but here we already have margins outside of the element, so these ones are not welcome + ui->gridLayout->setContentsMargins(0, 0, 0, 0); worker.moveToThread(&worker_thread); connect(this, &StatusInfoWidget::do_process_item, &worker, &StatusInfoWidgetWorker::process_item, Qt::QueuedConnection); -- cgit v1.2.3-54-g00ecf