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
@@ -331,7 +331,7 @@ void CPlotter::DrawOverlay() //DrawOverlay()
QPen penGreen(Qt::green, 3); //Mark Tol range with green line
QPen penRed(Qt::red, 3); //Mark Tx freq with red
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);
@@ -371,7 +371,7 @@ void CPlotter::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");