From 5ca98829f7c5bf504e78bd51e6ceb534c023ae05 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 28 Dec 2021 20:09:08 +0100 Subject: Some qt6 prep --- src/dialogs/ReCaptcha.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/dialogs/ReCaptcha.cpp') diff --git a/src/dialogs/ReCaptcha.cpp b/src/dialogs/ReCaptcha.cpp index 0ae46bba..982c17b6 100644 --- a/src/dialogs/ReCaptcha.cpp +++ b/src/dialogs/ReCaptcha.cpp @@ -25,11 +25,13 @@ ReCaptcha::ReCaptcha(const QString &session, QWidget *parent) auto layout = new QVBoxLayout(this); layout->setSpacing(conf::modals::WIDGET_SPACING); - layout->setMargin(conf::modals::WIDGET_MARGIN); + layout->setContentsMargins(conf::modals::WIDGET_MARGIN, + conf::modals::WIDGET_MARGIN, + conf::modals::WIDGET_MARGIN, + conf::modals::WIDGET_MARGIN); auto buttonLayout = new QHBoxLayout(); buttonLayout->setSpacing(8); - buttonLayout->setMargin(0); openCaptchaBtn_ = new QPushButton("Open reCAPTCHA", this); cancelBtn_ = new QPushButton(tr("Cancel"), this); -- cgit 1.5.1