|
|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
/* ============================================================
|
|
|
|
|
* Falkon - Qt web browser |
|
|
|
|
* Copyright (C) 2013-2016 David Rosca <nowrep@gmail.com> |
|
|
|
|
* Copyright (C) 2013-2018 David Rosca <nowrep@gmail.com> |
|
|
|
|
* |
|
|
|
|
* 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 |
|
|
|
|
@ -29,8 +29,8 @@ NavigationContainer::NavigationContainer(QWidget* parent) |
|
|
|
|
m_layout = new QVBoxLayout(this); |
|
|
|
|
m_layout->setContentsMargins(0, 0, 0, 0); |
|
|
|
|
m_layout->setSpacing(0); |
|
|
|
|
|
|
|
|
|
setLayout(m_layout); |
|
|
|
|
|
|
|
|
|
setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -53,7 +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); |
|
|
|
|
m_layout->setContentsMargins(0, enable ? 2 : 0, 0, enable ? 2 : 0); |
|
|
|
|
|
|
|
|
|
setUpdatesEnabled(true); |
|
|
|
|
} |
|
|
|
|
|