Qt: Fix search bar widget spacing

With setMargin(0), the widgets look awkwardly close to the window edges
This commit is contained in:
Léo Lam 2018-03-24 18:08:34 +01:00
parent 8d0c15bb97
commit 752098de22
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ void SearchBar::CreateWidgets()
layout->addWidget(m_search_edit); layout->addWidget(m_search_edit);
layout->addWidget(m_close_button); layout->addWidget(m_close_button);
layout->setMargin(0); layout->setSizeConstraint(QLayout::SetMinAndMaxSize);
setLayout(layout); setLayout(layout);
} }