From d3b2317ab7af2cc4e98e1cd6f45bc75c5fd210c2 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 29 Mar 2021 22:05:47 +0200 Subject: [PATCH] conf: Fix layout warnings QLayout: Attempting to add QLayout "" to DlgGeneral "", which already has a layout QLayout: Attempting to add QLayout "" to DlgPresentation "", which already has a layout --- part/dlggeneral.cpp | 2 +- part/dlgpresentation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/part/dlggeneral.cpp b/part/dlggeneral.cpp index f808e68ed..b66cc4d28 100644 --- a/part/dlggeneral.cpp +++ b/part/dlggeneral.cpp @@ -79,7 +79,7 @@ DlgGeneral::DlgGeneral(QWidget *parent, Okular::EmbedMode embedMode) KColorButton *customColor = new KColorButton(this); customColor->setObjectName(QStringLiteral("kcfg_BackgroundColor")); - QHBoxLayout *customColorLayout = new QHBoxLayout(this); + QHBoxLayout *customColorLayout = new QHBoxLayout(); customColorLayout->addWidget(useCustomColor); useCustomColor->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); customColorLayout->addWidget(customColor); diff --git a/part/dlgpresentation.cpp b/part/dlgpresentation.cpp index 29a0ca4cb..8b7fdaf11 100644 --- a/part/dlgpresentation.cpp +++ b/part/dlgpresentation.cpp @@ -41,7 +41,7 @@ DlgPresentation::DlgPresentation(QWidget *parent) advanceTime->setSuffix(ki18ncp("Advance every %1 seconds", " second", " seconds")); advanceTime->setObjectName(QStringLiteral("kcfg_SlidesAdvanceTime")); - QHBoxLayout *advanceAutomaticallyLayout = new QHBoxLayout(this); + QHBoxLayout *advanceAutomaticallyLayout = new QHBoxLayout(); advanceAutomaticallyLayout->addWidget(advanceAutomatically); advanceAutomatically->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); advanceAutomaticallyLayout->addWidget(advanceTime);