Fix layout warning

This fixes the following warning:

    QLayout: Attempting to add QLayout "" to PreviewsSettingsPage "", which already has a layout

`topLayout->addLayout(fileSizeBoxLayout)` takes ownership of
`fileSizeBoxLayout`, so there is no reason to use `this` as parent.
This commit is contained in:
Elvis Angelaccio 2017-07-21 12:09:17 +02:00
parent fccb89fc5c
commit 9f86b5a266

View file

@ -81,7 +81,7 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) :
m_remoteFileSizeBox->setSuffix(QStringLiteral(" MB"));
m_remoteFileSizeBox->setRange(0, 9999999); /* MB */
QHBoxLayout* fileSizeBoxLayout = new QHBoxLayout(this);
QHBoxLayout* fileSizeBoxLayout = new QHBoxLayout();
fileSizeBoxLayout->addWidget(remoteFileSizeLabel, 0, Qt::AlignRight);
fileSizeBoxLayout->addWidget(m_remoteFileSizeBox);