mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 20:50:43 +00:00
More graph Layout fixes
This commit is contained in:
parent
136918a563
commit
c74c57f343
@ -1082,7 +1082,7 @@ void gGraph::paint(int originX, int originY, int width, int height)
|
|||||||
|
|
||||||
int fw,font_height;
|
int fw,font_height;
|
||||||
GetTextExtent("Wg@",fw,font_height);
|
GetTextExtent("Wg@",fw,font_height);
|
||||||
m_margintop=font_height+(6*printScaleY());
|
m_margintop=font_height+(8*printScaleY());
|
||||||
|
|
||||||
//glColor4f(0,0,0,1);
|
//glColor4f(0,0,0,1);
|
||||||
left=marginLeft(),right=marginRight(),top=marginTop(),bottom=marginBottom();
|
left=marginLeft(),right=marginRight(),top=marginTop(),bottom=marginBottom();
|
||||||
|
@ -983,8 +983,8 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
|
|||||||
label+=":";
|
label+=":";
|
||||||
QRectF pagebnds=QRectF(0,top,res.width(),labelheight);
|
QRectF pagebnds=QRectF(0,top,res.width(),labelheight);
|
||||||
painter.drawText(pagebnds,label,QTextOption(Qt::AlignHCenter | Qt::AlignTop));
|
painter.drawText(pagebnds,label,QTextOption(Qt::AlignHCenter | Qt::AlignTop));
|
||||||
}
|
|
||||||
top+=labelheight; //pagebnds.height();
|
top+=labelheight; //pagebnds.height();
|
||||||
|
} else top+=labelheight/2;
|
||||||
|
|
||||||
PROFILE["UseAntiAliasing"]=force_antialiasing;
|
PROFILE["UseAntiAliasing"]=force_antialiasing;
|
||||||
int tmb=g->m_marginbottom;
|
int tmb=g->m_marginbottom;
|
||||||
|
Loading…
Reference in New Issue
Block a user