42 #ifndef QPRINTPREVIEWWIDGET_H 43 #define QPRINTPREVIEWWIDGET_H 45 #include <QtGui/qwidget.h> 46 #include <QtGui/qprinter.h> 48 #ifndef QT_NO_PRINTPREVIEWWIDGET 80 qreal zoomFactor()
const;
84 int currentPage()
const;
88 int pageCount()
const;
94 void zoomIn(
qreal zoom = 1.1);
95 void zoomOut(
qreal zoom = 1.1);
96 void setZoomFactor(
qreal zoomFactor);
100 void setCurrentPage(
int pageNumber);
104 void setLandscapeOrientation();
105 void setPortraitOrientation();
106 void setSinglePageViewMode();
107 void setFacingPagesViewMode();
108 void setAllPagesViewMode();
110 void updatePreview();
113 void paintRequested(
QPrinter *printer);
114 void previewChanged();
126 #endif // QT_NO_PRINTPREVIEWWIDGET 127 #endif // QPRINTPREVIEWWIDGET_H
#define QT_END_NAMESPACE
This macro expands to.
Orientation
This enum type (not to be confused with Orientation) is used to specify each page's orientation...
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QPrinter class is a paint device that paints on a printer.
#define Q_DECLARE_PRIVATE(Class)