Merge branch 'master' of https://github.com/uwerat/qskinny
This commit is contained in:
commit
e554a125b2
@ -323,8 +323,10 @@ QRectF QskMenuSkinlet::sampleRect(
|
|||||||
{
|
{
|
||||||
auto graphicRect = r;
|
auto graphicRect = r;
|
||||||
graphicRect.setWidth( graphicWidth );
|
graphicRect.setWidth( graphicWidth );
|
||||||
|
const auto padding = menu->paddingHint( QskMenu::Graphic );
|
||||||
|
graphicRect = graphicRect.marginsRemoved( padding );
|
||||||
|
|
||||||
return QRectF( r.x(), r.y(), graphicWidth, r.height() );
|
return graphicRect;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user