Fix warning about reassigning layout

This commit is contained in:
Martchus 2017-10-01 21:20:25 +02:00
parent 502f37dbf5
commit 544f00d52e
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ ErrorViewDialog::ErrorViewDialog()
}
// add layout to show status and additional buttons
auto *const buttonLayout = new QHBoxLayout(this);
auto *const buttonLayout = new QHBoxLayout;
buttonLayout->setMargin(0);
// add label for overall status

View File

@ -51,7 +51,7 @@ TextViewDialog::TextViewDialog(const QString &title, QWidget *parent)
m_browser->setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont));
// setup layout
m_layout = new QVBoxLayout(this);
m_layout = new QVBoxLayout;
m_layout->setAlignment(Qt::AlignCenter);
m_layout->addWidget(m_browser);
setLayout(m_layout);