From 2672e3b747a519d8c073d4dc353d72cce3ab1e36 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Tue, 8 Sep 2020 16:35:07 +0200 Subject: [PATCH] make caption smaller --- examples/iot-dashboard/Diagram.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/iot-dashboard/Diagram.cpp b/examples/iot-dashboard/Diagram.cpp index 337e119f..a6ae16ff 100644 --- a/examples/iot-dashboard/Diagram.cpp +++ b/examples/iot-dashboard/Diagram.cpp @@ -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 ); } };