Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qpagelayout.cpp File Reference

(6c72080f26e9b70041434c6d762f7d601a2bf19c)

#include "qpagelayout.h"
#include <QtCore/qpoint.h>
#include <QtCore/qrect.h>
#include <QtCore/qsize.h>
#include <qdebug.h>
+ Include dependency graph for qpagelayout.cpp:

Go to the source code of this file.

Classes

class  QPageLayoutPrivate
 

Functions

QT_BEGIN_NAMESPACE Q_GUI_EXPORT qreal qt_pointMultiplier (QPageLayout::Unit unit)
 
qreal qt_pixelMultiplier (int resolution)
 
Q_GUI_EXPORT QMarginsF qt_convertMargins (const QMarginsF &margins, QPageLayout::Unit fromUnits, QPageLayout::Unit toUnits)
 
QDebug operator<< (QDebug dbg, const QPageLayout &layout)
 

Function Documentation

◆ operator<<()

QDebug operator<< ( QDebug dbg,
const QPageLayout & layout )

Definition at line 941 of file qpagelayout.cpp.

References QMarginsF::bottom(), QPageLayout::Cicero, QPageLayout::Didot, QPageLayout::Inch, layout, QMarginsF::left(), QPageLayout::margins(), QPageLayout::Millimeter, QPageLayout::Pica, QPageLayout::Point, QPageLayout::Portrait, QMarginsF::right(), and QMarginsF::top().

+ Here is the call graph for this function:

◆ qt_convertMargins()

Q_GUI_EXPORT QMarginsF qt_convertMargins ( const QMarginsF & margins,
QPageLayout::Unit fromUnits,
QPageLayout::Unit toUnits )

Definition at line 42 of file qpagelayout.cpp.

References QMarginsF::bottom(), QMarginsF::isNull(), QMarginsF::left(), QPageLayout::Point, qCeil(), qRound(), qt_pointMultiplier(), QMarginsF::right(), and QMarginsF::top().

Referenced by QPageLayoutPrivate::isEquivalentTo(), QPageLayoutPrivate::margins(), QPageLayoutPrivate::marginsPoints(), QMacPrintEnginePrivate::setPageSize(), QWin32PrintEnginePrivate::setPageSize(), and QPageLayout::setUnits().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_pixelMultiplier()

qreal qt_pixelMultiplier ( int resolution)
extern

Definition at line 497 of file qpagesize.cpp.

Referenced by QPageLayoutPrivate::marginsPixels().

+ Here is the caller graph for this function:

◆ qt_pointMultiplier()

QT_BEGIN_NAMESPACE Q_GUI_EXPORT qreal qt_pointMultiplier ( QPageLayout::Unit unit)

Definition at line 20 of file qpagelayout.cpp.

References QPageLayout::Cicero, QPageLayout::Didot, QPageLayout::Inch, QPageLayout::Millimeter, QPageLayout::Pica, and QPageLayout::Point.

Referenced by QWindowsPrintDevice::loadMinMaxPageSizes(), QWindowsPrintDevice::loadPageSizes(), and qt_convertMargins().

+ Here is the caller graph for this function: