From 6492b2ac8790ce26bdaa6f1fb86530de04151e57 Mon Sep 17 00:00:00 2001 From: nowrep Date: Fri, 26 Apr 2013 23:11:24 +0200 Subject: [PATCH] [Toolbar] Use spacing and margins according to Qt style. Toolbar looks better now with Oxygen theme. --- src/lib/navigation/navigationbar.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/navigation/navigationbar.cpp b/src/lib/navigation/navigationbar.cpp index c4e3e9b0a..df8085ab2 100644 --- a/src/lib/navigation/navigationbar.cpp +++ b/src/lib/navigation/navigationbar.cpp @@ -67,6 +67,9 @@ NavigationBar::NavigationBar(QupZilla* mainClass) m_layout = new QHBoxLayout(this); m_layout->setMargin(3); m_layout->setSpacing(3); + + m_layout->setMargin(style()->pixelMetric(QStyle::PM_ToolBarItemMargin, 0, this)); + m_layout->setSpacing(style()->pixelMetric(QStyle::PM_ToolBarItemSpacing, 0, this)); setLayout(m_layout); m_buttonBack = new ToolButton(this);