From 4828e6adc2d9adcbed8dcf8ec406d2c0b22740e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9F=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=BA=D1=83=D1=80=D0=BD=D1=91=D0=B2?= Date: Tue, 12 Jan 2021 01:51:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80?= =?UTF-8?q?=D1=8B=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=B0=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qtsgraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qtsgraph.cpp b/qtsgraph.cpp index 07d6c38..7d04579 100644 --- a/qtsgraph.cpp +++ b/qtsgraph.cpp @@ -86,6 +86,7 @@ QTSGraph::QTSGraph(int w, int h, int x, int y, QWidget *parent) Pen = QPen(QBrush(QColor(DefaultColor)), 1); Font = QFont(); Brush = QBrush(QColor(DefaultColor),Qt::NoBrush); + SetTextStyle(1, 0, 10); ResetInterval = 1000; ResetTimer = new QTimer(); connect(ResetTimer, SIGNAL(timeout()), this, SLOT(slotResetTimer())); @@ -227,7 +228,7 @@ void QTSGraph::SetTextStyle(int idFont, int Direction, int CharSize) QString f; if(idFont == 0) f = "serif"; else if(idFont == 1) f = "sans"; - else if(idFont == 3) f = "mono"; + else if(idFont == 2) f = "mono"; TextDirection = Direction; Font.setFamily(f); Font.setPointSize(CharSize);