diff options
author | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-08-29 14:47:51 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@qt.io> | 2018-08-30 07:50:03 +0000 |
commit | 6e93581ba9af0b9f4e236abe4a42d7193d135c1f (patch) | |
tree | ed89909cb07d7be03fbdb3c9a00989bf8a01651f /src/Authoring/Studio/Render/StudioRotationWidget.cpp | |
parent | b50a7d5c7ee5ad2c32a62da6873afbc937fe697b (diff) |
Make drag-rotation angle display more readable
Doubled the font size and added a space to either side of the value
to give it bit of a margin.
Task-number: QT3DS-2149
Change-Id: If1f3f68a7d707404f3a88b0d9e315a22e5e34825
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Render/StudioRotationWidget.cpp')
-rw-r--r-- | src/Authoring/Studio/Render/StudioRotationWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Render/StudioRotationWidget.cpp b/src/Authoring/Studio/Render/StudioRotationWidget.cpp index 81862a22..8578595c 100644 --- a/src/Authoring/Studio/Render/StudioRotationWidget.cpp +++ b/src/Authoring/Studio/Render/StudioRotationWidget.cpp @@ -375,12 +375,12 @@ struct SRotationWidget : public SStudioWidgetImpl<StudioWidgetTypes::Rotation> char textBuffer[25] = { 0 }; QT3DSF32 angleDeg(m_RotationWedge->m_Angle); TODEG(angleDeg); - sprintf(textBuffer, "%.1f", angleDeg); + sprintf(textBuffer, " %.1f ", angleDeg); // spaces added for margin STextRenderInfo theInfo; theInfo.m_Text = inRenderContext.GetStringTable().RegisterStr(textBuffer); theInfo.m_HorizontalAlignment = TextHorizontalAlignment::Center; theInfo.m_VerticalAlignment = TextVerticalAlignment::Bottom; - theInfo.m_FontSize = 12.0f * pixelRatio; + theInfo.m_FontSize = 24.0f * pixelRatio; theInfo.m_Font = inRenderContext.GetStringTable().RegisterStr("TitilliumWeb-Regular"); QT3DSMat44 theTransMatrix(QT3DSMat44::createIdentity()); theTransMatrix.column3.x = endLineEnd.x; |