Fix warning about reassigning layout
This commit is contained in:
parent
502f37dbf5
commit
544f00d52e
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue