Commit b1a40d9d authored by Laurent Montel's avatar Laurent Montel 😁

Use parent directly

parent 4bf8f6bd
......@@ -37,9 +37,8 @@ using namespace MailTransport;
TransportMgr::TransportMgr()
: mCurrentJob(nullptr)
{
QVBoxLayout *vbox = new QVBoxLayout;
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
setLayout(vbox);
vbox->addWidget(new TransportManagementWidget(this));
mComboBox = new TransportComboBox(this);
......
......@@ -48,9 +48,8 @@ MessageQueuer::MessageQueuer()
if (!Akonadi::Control::start()) {
qFatal("Could not start Akonadi server.");
}
QVBoxLayout *vbox = new QVBoxLayout;
QVBoxLayout *vbox = new QVBoxLayout(this);
vbox->setMargin(0);
setLayout(vbox);
mComboBox = new TransportComboBox(this);
mComboBox->setEditable(true);
......
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