From 752098de22173e72daa2aceac22a84d38effc01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 24 Mar 2018 18:08:34 +0100 Subject: [PATCH] Qt: Fix search bar widget spacing With setMargin(0), the widgets look awkwardly close to the window edges --- Source/Core/DolphinQt2/SearchBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/SearchBar.cpp b/Source/Core/DolphinQt2/SearchBar.cpp index 27ed057f52..71b38bf92f 100644 --- a/Source/Core/DolphinQt2/SearchBar.cpp +++ b/Source/Core/DolphinQt2/SearchBar.cpp @@ -30,7 +30,7 @@ void SearchBar::CreateWidgets() layout->addWidget(m_search_edit); layout->addWidget(m_close_button); - layout->setMargin(0); + layout->setSizeConstraint(QLayout::SetMinAndMaxSize); setLayout(layout); }