From 11601f866e010269b55d290083ab59c68494fbbf Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 31 Jan 2016 13:05:43 +0100 Subject: [PATCH] NavigationContainer: Add small top margin top with tabs on top --- src/lib/navigation/navigationcontainer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/navigation/navigationcontainer.cpp b/src/lib/navigation/navigationcontainer.cpp index 8bb2da621..71061a252 100644 --- a/src/lib/navigation/navigationcontainer.cpp +++ b/src/lib/navigation/navigationcontainer.cpp @@ -1,6 +1,6 @@ /* ============================================================ * QupZilla - WebKit based browser -* Copyright (C) 2013-2014 David Rosca +* Copyright (C) 2013-2016 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -53,6 +53,7 @@ void NavigationContainer::toggleTabsOnTop(bool enable) m_layout->removeWidget(m_tabBar); m_layout->insertWidget(enable ? 0 : m_layout->count(), m_tabBar); + m_layout->setContentsMargins(0, enable ? 2 : 0, 0, 0); setUpdatesEnabled(true); }