Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7323237c authored by Laurent Montel's avatar Laurent Montel 😁

Assign parent directly. Remove setLayout(...) when not necessary

parent e3a05cc2
......@@ -64,10 +64,9 @@ AuditLogViewer::AuditLogViewer(const QString &log, QWidget *parent)
m_textEdit->setObjectName(QStringLiteral("m_textEdit"));
m_textEdit->setReadOnly(true);
QVBoxLayout *mainLayout = new QVBoxLayout;
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(m_textEdit);
mainLayout->addWidget(buttonBox);
setLayout(mainLayout);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment