#include <private/qprintengine_mac_p.h>
#include <qthread.h>
#include <quuid.h>
#include <QtCore/qcoreapplication.h>
Go to the source code of this file.
◆ qt_get_PDMHeight()
static int qt_get_PDMHeight |
( |
PMPageFormat |
pformat, |
|
|
bool |
fullPage, |
|
|
const PMResolution & |
resolution |
|
) |
| |
|
inlinestatic |
Definition at line 323 of file qprintengine_mac.mm.
Referenced by QMacPrintEngine::metric().
328 qreal vRatio = resolution.vRes / 72;
330 if (PMGetAdjustedPaperRect(pformat, &r) == noErr)
331 val =
qRound((r.bottom - r.top) * vRatio);
333 if (PMGetAdjustedPageRect(pformat, &r) == noErr)
334 val =
qRound((r.bottom - r.top) * vRatio);
Q_DECL_CONSTEXPR int qRound(qreal d)
◆ qt_get_PDMWidth()
static int qt_get_PDMWidth |
( |
PMPageFormat |
pformat, |
|
|
bool |
fullPage, |
|
|
const PMResolution & |
resolution |
|
) |
| |
|
inlinestatic |
Definition at line 307 of file qprintengine_mac.mm.
Referenced by QMacPrintEngine::metric().
312 qreal hRatio = resolution.hRes / 72;
314 if (PMGetAdjustedPaperRect(pformat, &r) == noErr)
315 val =
qRound((r.right - r.left) * hRatio);
317 if (PMGetAdjustedPageRect(pformat, &r) == noErr)
318 val =
qRound((r.right - r.left) * hRatio);
Q_DECL_CONSTEXPR int qRound(qreal d)
◆ qt_paperSizeToQSizeF()