mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-01 21:45:00 -04:00
Updates to support Qt v5.13
Replacement of deprecated Qt functions and member functions.
This commit is contained in:
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user