From 1d64b9bb10e90a0c6a1053a3a41614caf0e0f8e4 Mon Sep 17 00:00:00 2001 From: Ahmad Samir Date: Thu, 3 Dec 2020 20:06:11 +0200 Subject: DolphinView: set the parent of layout in the ctor This silences a runtime warning: QLayout: Attempting to add QLayout "" to DolphinView "", which already has a layout Remove redudant setLayout() calls, passing a parent widget to the Q*BoxLayout ctor sets that layout as the top-level layout for that widget. --- src/settings/viewpropsprogressinfo.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/settings/viewpropsprogressinfo.cpp') diff --git a/src/settings/viewpropsprogressinfo.cpp b/src/settings/viewpropsprogressinfo.cpp index 57a00c2b1..cd4ff379c 100644 --- a/src/settings/viewpropsprogressinfo.cpp +++ b/src/settings/viewpropsprogressinfo.cpp @@ -44,7 +44,6 @@ ViewPropsProgressInfo::ViewPropsProgressInfo(QWidget* parent, m_viewProps->setAutoSaveEnabled(false); auto layout = new QVBoxLayout(this); - setLayout(layout); m_label = new QLabel(i18nc("@info:progress", "Counting folders: %1", 0), this); layout->addWidget(m_label); -- cgit v1.3