mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-21 21:20:45 +00:00
Simplify graph scaling in reports.. Much quicker. :)
This commit is contained in:
parent
e273a283d3
commit
786816296a
@ -1042,15 +1042,9 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
|
|||||||
|
|
||||||
g->m_marginbottom=tmb;
|
g->m_marginbottom=tmb;
|
||||||
PROFILE["UseAntiAliasing"]=aa_setting;
|
PROFILE["UseAntiAliasing"]=aa_setting;
|
||||||
QPixmap pm2;
|
|
||||||
if (!no_scaling) {
|
|
||||||
pm2=pm.scaledToWidth(printer_width);
|
|
||||||
} else {
|
|
||||||
pm2=pm;
|
|
||||||
}
|
|
||||||
|
|
||||||
painter.drawPixmap(0,top,pm2.width(),pm2.height(),pm2);
|
painter.drawPixmap(0,top,printer_width,full_graph_height,pm);
|
||||||
top+=pm2.height();
|
top+=full_graph_height;
|
||||||
|
|
||||||
gcnt++;
|
gcnt++;
|
||||||
if (qprogress) {
|
if (qprogress) {
|
||||||
|
Loading…
Reference in New Issue
Block a user