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);