mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[ComboTabBar] Workaround for setting tabbbar height with Oxygen
This commit is contained in:
parent
23876a3765
commit
852e197334
@ -17,6 +17,8 @@
|
||||
* ============================================================ */
|
||||
#include "combotabbar.h"
|
||||
#include "toolbutton.h"
|
||||
#include "mainapplication.h"
|
||||
#include "proxystyle.h"
|
||||
|
||||
#include <QIcon>
|
||||
#include <QHBoxLayout>
|
||||
@ -482,7 +484,17 @@ void ComboTabBar::setMouseTracking(bool enable)
|
||||
|
||||
void ComboTabBar::setUpLayout()
|
||||
{
|
||||
const int height = m_mainTabBar->height();
|
||||
int height = m_mainTabBar->height();
|
||||
|
||||
// Workaround for Oxygen theme. For some reason, m_mainTabBar->height() returns bigger
|
||||
// height than it actually is.
|
||||
if (mApp->proxyStyle() && mApp->proxyStyle()->name() == QLatin1String("oxygen")) {
|
||||
height -= 4;
|
||||
}
|
||||
|
||||
if (height <= 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
setFixedHeight(height);
|
||||
m_pinnedTabBar->setFixedHeight(height);
|
||||
|
Loading…
Reference in New Issue
Block a user