Updates to support Qt v5.13

Replacement of deprecated Qt functions and member functions.
This commit is contained in:
Bill Somerville
2019-07-08 01:37:04 +01:00
parent 0c49f6f872
commit 01aaa852e3
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ void EPlotter::DrawOverlay() //DrawOverlay()
int x,y;
QPainter painter(&m_OverlayPixmap);
painter.initFrom(this);
painter.setBackground (palette ().brush (backgroundRole ()));
QLinearGradient gradient(0, 0, 0 ,m_h2); //fill background with gradient
gradient.setColorAt(1, Qt::black);
gradient.setColorAt(0, Qt::darkBlue);
@@ -199,7 +199,7 @@ void EPlotter::DrawOverlay() //DrawOverlay()
QRect rect0;
QPainter painter0(&m_ScalePixmap);
painter0.initFrom(this);
painter0.setBackground (palette ().brush (backgroundRole ()));
//create Font to use for scales
QFont Font("Arial");