Commit 7f91ab64 authored by Laurent Montel's avatar Laurent Montel 😁

Fix assign layout

parent 74d8502e
......@@ -43,8 +43,7 @@ EventSelectorDialog::EventSelectorDialog(QWidget *parent, Qt::WindowFlags f)
: QDialog(parent, f)
{
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(mainWidget);
QHBoxLayout *layout = new QHBoxLayout(mainWidget);
m_view = new QTreeView;
......
......@@ -23,11 +23,10 @@
mailreaderView::mailreaderView(QWidget *parent)
{
ui_mailreaderview.setupUi(this);
QHBoxLayout *layout = new QHBoxLayout;
QHBoxLayout *layout = new QHBoxLayout(this);
m_readerWin = new MessageViewer::Viewer(this, parent, dynamic_cast<KXmlGuiWindow *>(parent)->actionCollection());
m_readerWin->setAttachmentStrategy(MessageViewer::AttachmentStrategy::inlined());
layout->addWidget(m_readerWin);
setLayout(layout);
setAutoFillBackground(true);
displayAboutPage();
connect(m_readerWin, SIGNAL(urlClicked(Akonadi::Item,QUrl)), this,
......
......@@ -40,9 +40,8 @@ ShortUrlConfigureDialog::ShortUrlConfigureDialog(QWidget *parent)
connect(buttonBox->button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this, &ShortUrlConfigureDialog::slotDefaultClicked);
QWidget *w = new QWidget;
QVBoxLayout *lay = new QVBoxLayout;
QVBoxLayout *lay = new QVBoxLayout(w);
lay->setMargin(0);
w->setLayout(lay);
mainLayout->addWidget(w);
mainLayout->addWidget(buttonBox);
......
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