summaryrefslogtreecommitdiff
path: root/widgets/fastplot.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-05-11 22:18:20 +0200
committerChristoph Berg <myon@debian.org>2020-05-11 22:18:20 +0200
commita8edac06b534058e52126c4d55e23b217df2df91 (patch)
treef2c3567fae58aad676d544ee8f07ac78dd2eb1ec /widgets/fastplot.cpp
parent4f6c0156a70e8f2ff70fe5a1a39f5e9b22ffd026 (diff)
parent32a41b1abe1a4aab0892c9c2051be6ba5b379f1e (diff)
Update upstream source from tag 'upstream/2.2.0_rc1+repack'
Update to upstream version '2.2.0~rc1+repack' with Debian dir fe177bc6cd2d4c1256a3775504f6010be54e7463
Diffstat (limited to 'widgets/fastplot.cpp')
-rw-r--r--widgets/fastplot.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/fastplot.cpp b/widgets/fastplot.cpp
index a388f0ac..b60f811d 100644
--- a/widgets/fastplot.cpp
+++ b/widgets/fastplot.cpp
@@ -58,7 +58,7 @@ void FPlotter::drawScale() //drawScale()
QRect rect0;
QPainter painter0(&m_ScalePixmap);
- painter0.initFrom(this);
+ painter0.setBackground (palette ().brush (backgroundRole ()));
//create Font to use for scales
QFont Font("Arial");
@@ -155,7 +155,7 @@ void FPlotter::draw() //draw()
int ih=m_UTCdisk/10000;
int im=m_UTCdisk/100 % 100;
int is=m_UTCdisk % 100;
- m_t.sprintf("%2.2d:%2.2d:%2.2d",ih,im,is);
+ m_t = m_t.asprintf("%2.2d:%2.2d:%2.2d",ih,im,is);
}
int k0=m_jh0;
@@ -168,7 +168,7 @@ void FPlotter::draw() //draw()
int ih=m_UTCdisk/10000;
int im=m_UTCdisk/100 % 100;
int is=m_UTCdisk % 100;
- m_t.sprintf("%2.2d:%2.2d:%2.2d",ih,im,is);
+ m_t = m_t.asprintf("%2.2d:%2.2d:%2.2d",ih,im,is);
} else {
m_t=QDateTime::currentDateTimeUtc().toString("hh:mm:ss");
}
@@ -243,7 +243,7 @@ void FPlotter::mouseMoveEvent(QMouseEvent *event)
// int y=event->y();
float t=x/m_pixPerSecond;
QString t1;
- t1.sprintf("%5.2f",t);
+ t1 = t1.asprintf("%5.2f",t);
QRectF rect0(78,85,40,13); //### Should use font metrics ###
painter.fillRect(rect0,Qt::black);
painter.setPen(Qt::yellow);