From 6c938cc070b8e005ab2892ec8a5f03e8bd9d6769 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sun, 21 Apr 2019 20:28:55 +0200 Subject: [PATCH] Qt/VerifyWidget: Fix layout warnings --- Source/Core/DolphinQt/Config/VerifyWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/Config/VerifyWidget.cpp b/Source/Core/DolphinQt/Config/VerifyWidget.cpp index f3872df211..fff9828b09 100644 --- a/Source/Core/DolphinQt/Config/VerifyWidget.cpp +++ b/Source/Core/DolphinQt/Config/VerifyWidget.cpp @@ -21,7 +21,7 @@ VerifyWidget::VerifyWidget(std::shared_ptr volume) : m_volume(std::move(volume)) { - QVBoxLayout* layout = new QVBoxLayout(this); + QVBoxLayout* layout = new QVBoxLayout; CreateWidgets(); ConnectWidgets(); @@ -50,7 +50,7 @@ void VerifyWidget::CreateWidgets() m_summary_text = new QTextEdit(this); m_summary_text->setReadOnly(true); - m_hash_layout = new QFormLayout(this); + m_hash_layout = new QFormLayout; std::tie(m_crc32_checkbox, m_crc32_line_edit) = AddHashLine(m_hash_layout, tr("CRC32:")); std::tie(m_md5_checkbox, m_md5_line_edit) = AddHashLine(m_hash_layout, tr("MD5:")); std::tie(m_sha1_checkbox, m_sha1_line_edit) = AddHashLine(m_hash_layout, tr("SHA-1:")); @@ -65,7 +65,7 @@ std::pair VerifyWidget::AddHashLine(QFormLayout* layout, QCheckBox* checkbox = new QCheckBox(tr("Calculate"), this); checkbox->setChecked(true); - QHBoxLayout* hbox_layout = new QHBoxLayout(this); + QHBoxLayout* hbox_layout = new QHBoxLayout; hbox_layout->addWidget(line_edit); hbox_layout->addWidget(checkbox);