From ad66edd542d5a2f82962c2e6ce76e5aed9ec4d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Sun, 19 Jan 2020 21:03:11 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@711 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/graphic/graphic.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qad/graphic/graphic.cpp b/qad/graphic/graphic.cpp index edc5323..8a06b3d 100644 --- a/qad/graphic/graphic.cpp +++ b/qad/graphic/graphic.cpp @@ -303,7 +303,11 @@ void Graphic::canvasPaintEvent() { lasth = hei; font_sz = fontMetrics().size(0, "0"); font_sz.setHeight(font_sz.height() * 1.); +#ifdef Q_OS_ANDROID + font_sz.setWidth(font_sz.width() * 6); +#else font_sz.setWidth(font_sz.width() * 8); +#endif thick = lineThickness(); if (buffer != 0) if (buffer->width() != wid || buffer->height() != hei) {delete buffer; buffer = 0;} if (buffer == 0) buffer = new QImage(wid, hei, QImage::Format_RGB32);