File Metadata

Author
hpereiradacosta
Created
Jun 27 2019, 2:49 PM

patch.diff

diff --git a/kstyle/breezehelper.cpp b/kstyle/breezehelper.cpp
index 909eb017..866312c6 100644
--- a/kstyle/breezehelper.cpp
+++ b/kstyle/breezehelper.cpp
@@ -534,7 +534,7 @@ namespace Breeze
if( !outline.isValid() ) return;
// adjust rect
- QRectF frameRect( rect.adjusted( 1, 1, -1, -1 ) );
+ QRectF frameRect( rect );
frameRect.adjust( 0.5, 0.5, -0.5, -0.5 );
// setup painter
@@ -546,22 +546,18 @@ namespace Breeze
{
default:
case SideLeft:
- frameRect.adjust( 0, 1, 0, -1 );
painter->drawLine( frameRect.topRight(), frameRect.bottomRight() );
break;
case SideTop:
- frameRect.adjust( 1, 0, -1, 0 );
painter->drawLine( frameRect.topLeft(), frameRect.topRight() );
break;
case SideRight:
- frameRect.adjust( 0, 1, 0, -1 );
painter->drawLine( frameRect.topLeft(), frameRect.bottomLeft() );
break;
case SideBottom:
- frameRect.adjust( 1, 0, -1, 0 );
painter->drawLine( frameRect.bottomLeft(), frameRect.bottomRight() );
break;
diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp
index ed7d29b2..606d9497 100644
--- a/kstyle/breezestyle.cpp
+++ b/kstyle/breezestyle.cpp
@@ -488,7 +488,8 @@ namespace Breeze
// frame width
case PM_DefaultFrameWidth:
if( qobject_cast<const QMenu*>( widget ) ) return Metrics::Menu_FrameWidth;
- if( qobject_cast<const QLineEdit*>( widget ) ) return Metrics::LineEdit_FrameWidth;
+ else if( qobject_cast<const QLineEdit*>( widget ) ) return Metrics::LineEdit_FrameWidth;
+ else if( widget && widget->property( PropertyNames::sidePanelView ).toBool() ) return 0;
#if QT_VERSION >= 0x050000
else if( isQtQuickControl( option, widget ) )
{