mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 10:40:42 +00:00
Minor layout tweaks with report title
This commit is contained in:
parent
f186771c21
commit
e273a283d3
@ -804,9 +804,9 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
|
||||
QString title=name+" Report";
|
||||
painter.setFont(*bigfont);
|
||||
int top=0;
|
||||
QRectF bounds=painter.boundingRect(QRectF(0,top,printer_width,title_height),title,QTextOption(Qt::AlignHCenter | Qt::AlignTop));
|
||||
QRectF bounds=painter.boundingRect(QRectF(0,top,printer_width,0),title,QTextOption(Qt::AlignHCenter | Qt::AlignTop));
|
||||
painter.drawText(bounds,title,QTextOption(Qt::AlignHCenter | Qt::AlignTop));
|
||||
top+=bounds.height();
|
||||
top+=bounds.height()+normal_height/2.0;
|
||||
painter.setFont(*defaultfont);
|
||||
float printer_dpi=qMax(printer->physicalDpiX(), printer->logicalDpiX());
|
||||
float screen_dpi=QApplication::desktop()->physicalDpiX();
|
||||
|
Loading…
Reference in New Issue
Block a user