From f5ce0fe3c83c3227f72e823649b4d38a5ec94665 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 25 Oct 2013 22:48:32 +0200 Subject: [PATCH] fixed count label auto-size in flow_gl --- common/yacreader_flow_gl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/yacreader_flow_gl.cpp b/common/yacreader_flow_gl.cpp index cdd302e0..8aefecfa 100644 --- a/common/yacreader_flow_gl.cpp +++ b/common/yacreader_flow_gl.cpp @@ -306,7 +306,9 @@ void YACReaderFlowGL::paintGL() void YACReaderFlowGL::resizeGL(int width, int height) { - fontSize = width * 0.015; + fontSize = (width + height) * 0.010; + if(fontSize < 10) + fontSize = 10; //int side = qMin(width, height); udpatePerspective(width,height);