From 5dc36a4eecd7be21bc2f2acd9330051069e5fe7c Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Sat, 3 Oct 2015 22:59:50 +0900 Subject: [PATCH] added proper margin around toolbox tabs --- kstyle/breeze.h | 1 + kstyle/breezestyle.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/kstyle/breeze.h b/kstyle/breeze.h index b1662472..35961704 100644 --- a/kstyle/breeze.h +++ b/kstyle/breeze.h @@ -146,6 +146,7 @@ namespace Breeze // toolbox ToolBox_TabMinWidth = 80, ToolBox_TabItemSpacing = 4, + ToolBox_TabMarginWidth = 8, // tooltips ToolTip_FrameWidth = 3, diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 070e397a..bb2d8fce 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -1899,6 +1899,7 @@ namespace Breeze } + contentsWidth += 2*Metrics::ToolBox_TabMarginWidth; contentsWidth = qMin( contentsWidth, rect.width() ); contentsWidth = qMax( contentsWidth, int(Metrics::ToolBox_TabMinWidth) ); return centerRect( rect, contentsWidth, rect.height() );