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