Commit c6591b11 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Assign directly layout

parent 62c3442a
...@@ -83,9 +83,8 @@ SearchWindow::SearchWindow(KMMainWidget *widget, const Akonadi::Collection &coll ...@@ -83,9 +83,8 @@ SearchWindow::SearchWindow(KMMainWidget *widget, const Akonadi::Collection &coll
QVBoxLayout *mainLayout = new QVBoxLayout(this); QVBoxLayout *mainLayout = new QVBoxLayout(this);
QWidget *topWidget = new QWidget; QWidget *topWidget = new QWidget;
QVBoxLayout *lay = new QVBoxLayout; QVBoxLayout *lay = new QVBoxLayout(topWidget);
lay->setContentsMargins(0, 0, 0, 0); lay->setContentsMargins(0, 0, 0, 0);
topWidget->setLayout(lay);
mSearchPatternWidget = new SearchPatternWarning; mSearchPatternWidget = new SearchPatternWarning;
lay->addWidget(mSearchPatternWidget); lay->addWidget(mSearchPatternWidget);
mainLayout->addWidget(topWidget); mainLayout->addWidget(topWidget);
......
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