mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-01 22:32:26 -04:00
Auto-align drawing of horizontal grids.
This commit is contained in:
parent
98a67820c8
commit
5a0138fa02
@ -415,7 +415,11 @@ void CPlotter::DrawOverlay() //DrawOverlay()
|
|||||||
if(m_bTotalPower) painter.setPen(QPen(Qt::white, 1,Qt::DashLine));
|
if(m_bTotalPower) painter.setPen(QPen(Qt::white, 1,Qt::DashLine));
|
||||||
for( int i=1; i<VERT_DIVS; i++) { //draw horizontal grids
|
for( int i=1; i<VERT_DIVS; i++) { //draw horizontal grids
|
||||||
y = int(i*m_vpixperdiv);
|
y = int(i*m_vpixperdiv);
|
||||||
|
if(m_bTotalPower) {
|
||||||
painter.drawLine(15, y, w, y);
|
painter.drawLine(15, y, w, y);
|
||||||
|
} else {
|
||||||
|
painter.drawLine(0, y, w, y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_bTotalPower) {
|
if(m_bTotalPower) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user