diff --git a/kstyle/breeze.h b/kstyle/breeze.h index 09bdd292..72601878 100644 --- a/kstyle/breeze.h +++ b/kstyle/breeze.h @@ -86,9 +86,11 @@ namespace Breeze GroupBox_TitleMarginWidth = 4, // buttons + Button_MinWidth = 80, Button_MarginWidth = 6, Button_BoxTextSpace = 4, + // tool buttons ToolButton_MarginWidth = 6, ToolButton_BoxTextSpace = 12, diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 7e48b271..5e898c19 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -2322,6 +2322,9 @@ namespace Breeze } + // make sure buttons have a minimum width + size.rwidth() = qMax( size.rwidth(), int( Metrics::Button_MinWidth ) ); + // finally add margins return flat ? size : expandSize( size, Metrics::Frame_FrameWidth );