mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 12:40:43 +00:00
Add extra debugging messages for Mac printing
This commit is contained in:
parent
8813529f67
commit
6501f90e9e
@ -439,7 +439,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp,
|
||||
if (mach->SessionExists(sequence))
|
||||
return false;
|
||||
|
||||
if (size<40)
|
||||
if (size<44-16)
|
||||
return false;
|
||||
|
||||
Session *session=new Session(mach,sequence);
|
||||
|
@ -765,12 +765,12 @@ void MainWindow::PrintReport(gGraphView *gv,QString name, QDate date)
|
||||
//QRect screen=QApplication::desktop()->screenGeometry();
|
||||
QRect res=printer->pageRect();
|
||||
|
||||
qDebug() << "X" << printer->logicalDpiX() << printer->physicalDpiX();
|
||||
qDebug() << "Y" << printer->logicalDpiY() << printer->physicalDpiY();
|
||||
qDebug() << "Printer Resolution is" << res.width() << "x" << res.height();
|
||||
|
||||
qDebug() << "X DPI (log vs phys):" << printer->logicalDpiX() << printer->physicalDpiX();
|
||||
qDebug() << "Y DPI (log vs phys): " << printer->logicalDpiY() << printer->physicalDpiY();
|
||||
qDebug() << vscale << hscale;
|
||||
qDebug() << "res:" << printer->resolution() << "dpi" << float(res.width()) / float(res.height());
|
||||
|
||||
qDebug() << normal_height << "normal_height, font ascent" << fm2.ascent();
|
||||
float printer_width=res.width();
|
||||
float printer_height=res.height()-normal_height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user