Commit 3dac0521 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add parent directly

parent d09ef5d3
......@@ -53,9 +53,8 @@ ArticleViewerWebEngineWidgetNg::ArticleViewerWebEngineWidgetNg(KActionCollection
void ArticleViewerWebEngineWidgetNg::initializeLayout(KActionCollection *ac)
{
QVBoxLayout *layout = new QVBoxLayout;
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
setLayout(layout);
mTextToSpeechWidget = new KPIMTextEdit::TextToSpeechWidget(this);
mTextToSpeechWidget->setObjectName(QStringLiteral("texttospeechwidget"));
......
......@@ -28,7 +28,7 @@ using namespace Akregator;
CrashWidget::CrashWidget(QWidget *parent)
: QWidget(parent)
{
QVBoxLayout *vbox = new QVBoxLayout;
QVBoxLayout *vbox = new QVBoxLayout(this);
QHBoxLayout *labelLayout = new QHBoxLayout;
QLabel *label = new QLabel(i18n("Akregator did not close correctly. Would you like to restore the previous session?"), this);
......@@ -65,7 +65,6 @@ CrashWidget::CrashWidget(QWidget *parent)
connect(askMeLaterButton, &QPushButton::clicked, this, &CrashWidget::slotAskMeLater);
askMeLaterButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
buttonLayout->addStretch(0);
setLayout(vbox);
}
CrashWidget::~CrashWidget()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment