From 1012ec37c7d616492d3227ed3a4f1433b3902963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 1 Oct 2021 20:03:37 +0200 Subject: [PATCH] Use setContentsMargins instead of setMargin --- YACReader/goto_flow_toolbar.cpp | 2 +- YACReader/goto_flow_widget.cpp | 2 +- YACReader/notifications_label_widget.cpp | 2 +- custom_widgets/whats_new_dialog.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/YACReader/goto_flow_toolbar.cpp b/YACReader/goto_flow_toolbar.cpp index 81e49f90..41ea3253 100644 --- a/YACReader/goto_flow_toolbar.cpp +++ b/YACReader/goto_flow_toolbar.cpp @@ -71,7 +71,7 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget *parent) connect(goToButton, &QPushButton::clicked, this, &GoToFlowToolBar::goTo); - normalLayout->setMargin(0); + normalLayout->setContentsMargins(0, 0, 0, 0); normalLayout->setSpacing(0); normalLayout->addStretch(); normalLayout->addWidget(pageHint); diff --git a/YACReader/goto_flow_widget.cpp b/YACReader/goto_flow_widget.cpp index 123472f4..0b32bf7d 100644 --- a/YACReader/goto_flow_widget.cpp +++ b/YACReader/goto_flow_widget.cpp @@ -12,7 +12,7 @@ GoToFlowWidget::GoToFlowWidget(QWidget *parent) : QWidget(parent) { mainLayout = new QVBoxLayout(this); - mainLayout->setMargin(0); + mainLayout->setContentsMargins(0, 0, 0, 0); mainLayout->setSpacing(0); toolBar = new GoToFlowToolBar(this); diff --git a/YACReader/notifications_label_widget.cpp b/YACReader/notifications_label_widget.cpp index c6939493..d450e84b 100644 --- a/YACReader/notifications_label_widget.cpp +++ b/YACReader/notifications_label_widget.cpp @@ -7,7 +7,7 @@ NotificationsLabelWidget::NotificationsLabelWidget(QWidget *parent) { auto layout = new QVBoxLayout; layout->setSpacing(0); - layout->setMargin(0); + layout->setContentsMargins(0, 0, 0, 0); setAttribute(Qt::WA_LayoutUsesWidgetRect, true); effect = new QGraphicsOpacityEffect(this); diff --git a/custom_widgets/whats_new_dialog.cpp b/custom_widgets/whats_new_dialog.cpp index 4fe9c541..7e41e77e 100644 --- a/custom_widgets/whats_new_dialog.cpp +++ b/custom_widgets/whats_new_dialog.cpp @@ -14,7 +14,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent) scrollArea->setContentsMargins(0, 0, 0, 0); auto mainLayout = new QVBoxLayout(this); - mainLayout->setMargin(0); + mainLayout->setContentsMargins(0, 0, 0, 0); auto contentLayout = new QGridLayout(); auto content = new QFrame();