Commit 3dbcea7e authored by Hugo Pereira Da Costa's avatar Hugo Pereira Da Costa
Browse files

Changed frame width to 2, to cope with focus rect.

Adjusted renderFrame consequently (for alignment)
parent 7068aa90
......@@ -31,7 +31,7 @@ namespace Breeze
{
// frames
Frame_FrameWidth = 1,
Frame_FrameWidth = 2,
// line edit margins
LineEdit_MarginWidth = 4,
......
......@@ -1834,7 +1834,7 @@ namespace Breeze
// content
painter->setPen( Qt::NoPen );
painter->setBrush( color );
painter->drawRoundedRect( baseRect, 2.5, 2.5 );
painter->drawRoundedRect( baseRect.adjusted( 1, 1, -1, -1 ), 2.5, 2.5 );
}
if( outline.isValid() )
......@@ -1852,7 +1852,8 @@ namespace Breeze
painter->setPen( QPen( outline, 1 ) );
painter->setBrush( Qt::NoBrush );
painter->drawRoundedRect( baseRect.adjusted( 0.5, 0.5, -0.5, -0.5 ), 2, 2 );
// painter->drawRoundedRect( baseRect.adjusted( 0.5, 0.5, -0.5, -0.5 ), 2, 2 );
painter->drawRoundedRect( baseRect.adjusted( 1.5, 1.5, -1.5, -1.5 ), 2, 2 );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment