make caption smaller

This commit is contained in:
Peter Hartmann 2020-09-08 16:35:07 +02:00
parent f849acaef9
commit 2672e3b747
1 changed files with 2 additions and 3 deletions

View File

@ -24,9 +24,8 @@ namespace
auto* textLabel = new QskTextLabel( text, this );
textLabel->setFontRole( QskSkin::TinyFont );
qreal h = textLabel->preferredSize().height();
box->setPreferredSize( h, h );
box->setBoxShapeHint( QskBox::Panel, h / 2 );
box->setFixedSize( 8, 8 );
box->setBoxShapeHint( QskBox::Panel, 4 );
}
};