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/FallbackAuth.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/dialogs/FallbackAuth.cpp') diff --git a/src/dialogs/FallbackAuth.cpp b/src/dialogs/FallbackAuth.cpp index 2b8dfed9..0d8be237 100644 --- a/src/dialogs/FallbackAuth.cpp +++ b/src/dialogs/FallbackAuth.cpp @@ -25,11 +25,13 @@ FallbackAuth::FallbackAuth(const QString &authType, const QString &session, QWid 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); openBtn_ = new QPushButton(tr("Open Fallback in Browser"), this); cancelBtn_ = new QPushButton(tr("Cancel"), this); -- cgit 1.5.1