mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
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:
parent
fccb89fc5c
commit
9f86b5a266
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue