From 47a015cde2951af65fe17c20bdbe0034cb48359d Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Sat, 15 Jan 2022 12:49:29 +0800 Subject: [PATCH] breezestyle: Remove extra margin for InstantPopup Assigning a menu with instant popup mode to an action gives it excessive left padding. Removing the extra margin fixes it. BUG: 447288 --- kstyle/breezestyle.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index fe699826..567d21bc 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -6446,12 +6446,6 @@ namespace Breeze const auto button( qobject_cast( widget ) ); if( button->isChecked() || button->isDown() ) copy.state |= State_On; - } else if( !inTabBar && hasInlineIndicator ) { - - const int marginWidth( flat ? Metrics::ToolButton_MarginWidth : Metrics::Button_MarginWidth + Metrics::Frame_FrameWidth ); - contentsRect = insideMargin( contentsRect, marginWidth, 0 ); - contentsRect = visualRect( option, contentsRect ); - } copy.rect = contentsRect;