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

Fix layout

parent 1a653af3
...@@ -105,13 +105,12 @@ AddTransportDialog::AddTransportDialog(QWidget *parent) ...@@ -105,13 +105,12 @@ AddTransportDialog::AddTransportDialog(QWidget *parent)
{ {
// Setup UI. // Setup UI.
{ {
QVBoxLayout *mainLayout = new QVBoxLayout; QVBoxLayout *mainLayout = new QVBoxLayout(this);
setLayout(mainLayout);
QWidget *widget = new QWidget(this); QWidget *widget = new QWidget(this);
d->ui.setupUi(widget); d->ui.setupUi(widget);
mainLayout->addWidget(widget); mainLayout->addWidget(widget);
setWindowTitle(i18n("Create Outgoing Account")); setWindowTitle(i18n("Create Outgoing Account"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
d->okButton = buttonBox->button(QDialogButtonBox::Ok); d->okButton = buttonBox->button(QDialogButtonBox::Ok);
d->okButton->setText(i18nc("create and configure a mail transport", "Create and Configure")); d->okButton->setText(i18nc("create and configure a mail transport", "Create and Configure"));
d->okButton->setEnabled(false); d->okButton->setEnabled(false);
......
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