Qt 4.8
Public Functions | Public Variables | List of all members
QPrintPreviewDialogPrivate Class Reference
Inheritance diagram for QPrintPreviewDialogPrivate:
QDialogPrivate QWidgetPrivate QObjectPrivate QObjectData

Public Functions

void _q_fit (QAction *action)
 
void _q_navigate (QAction *action)
 
void _q_pageNumEdited ()
 
void _q_pageSetup ()
 
void _q_previewChanged ()
 
void _q_print ()
 
void _q_setMode (QAction *action)
 
void _q_zoomFactorChanged ()
 
void _q_zoomIn ()
 
void _q_zoomOut ()
 
void init (QPrinter *printer=0)
 
bool isFitting ()
 
void layoutPages ()
 
void populateScene ()
 
 QPrintPreviewDialogPrivate ()
 
void setFitting (bool on)
 
void setupActions ()
 
void updateNavActions ()
 
void updatePageNumLabel ()
 
void updateZoomFactor ()
 
- Public Functions inherited from QDialogPrivate
void hideDefault ()
 Hides the default button indicator. More...
 
virtual void mac_nativeDialogModalHelp ()
 
 QDialogPrivate ()
 
void resetModalitySetByOpen ()
 
void setDefault (QPushButton *)
 This function is called by the push button pushButton when it becomes the default button. More...
 
void setMainDefault (QPushButton *)
 This function sets the default default push button to pushButton. More...
 
- Public Functions inherited from QWidgetPrivate
void _q_showIfNotHidden ()
 
virtual void aboutToDestroy ()
 
void activateChildLayoutsRecursively ()
 
QSize adjustedSize () const
 
void adjustQuitOnCloseAttribute ()
 
QInputContextassignedInputContext () const
 
QPainterbeginSharedPainter ()
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool, bool includeFrame=false) const
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void clipToEffectiveMask (QRegion &region) const
 
bool close_helper (CloseMode mode)
 
void create_sys (WId window, bool initializeWindow, bool destroyOldWindow)
 
QWindowSurfacecreateDefaultWindowSurface ()
 
QWindowSurfacecreateDefaultWindowSurface_sys ()
 
void createExtra ()
 Creates the widget extra data. More...
 
void createRecursively ()
 
void createSysExtra ()
 
void createTLExtra ()
 
void createTLSysExtra ()
 
void createWinId (WId id=0)
 
void deactivateWidgetCleanup ()
 
void deleteExtra ()
 Deletes the widget extra data. More...
 
void deleteSysExtra ()
 
void deleteTLSysExtra ()
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter=0, QWidgetBackingStore *backingStore=0)
 
QWidgeteffectiveFocusWidget ()
 
QRect effectiveRectFor (const QRect &rect) const
 
bool endSharedPainter ()
 
void enforceNativeChildren ()
 
QWExtraextraData () const
 
QRect frameStrut () const
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
const QRegiongetOpaqueChildren () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
virtual bool hasHeightForWidth () const
 
void hide_helper ()
 
void hide_sys ()
 Platform-specific part of QWidget::hide(). More...
 
void hideChildren (bool spontaneous)
 
void inheritStyle ()
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
QInputContextinputContext () const
 
void invalidateBuffer (const QRegion &)
 Invalidates the rgn (in widget's coordinates) of the backing store, i.e. More...
 
void invalidateBuffer (const QRect &)
 This function is equivalent to calling invalidateBuffer(QRegion(rect), ...), but is more efficient as it eliminates QRegion operations/allocations and can use the rect more precisely for additional cut-offs. More...
 
void invalidateBuffer_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the buffer when the widget is resized. More...
 
void invalidateGraphicsEffectsRecursively ()
 
bool isAboutToShow () const
 
bool isBackgroundInherited () const
 
bool isOverlapped (const QRect &) const
 
void lower_sys ()
 
QPoint mapFromGlobal (const QPoint &pos) const
 
QPoint mapToGlobal (const QPoint &pos) const
 
QWidgetBackingStoremaybeBackingStore () const
 
QTLWExtramaybeTopData () const
 
void moveRect (const QRect &, int dx, int dy)
 
bool nativeChildrenForced () const
 
QFont naturalWidgetFont (uint inheritedMask) const
 
QPalette naturalWidgetPalette (uint inheritedMask) const
 Returns the palette that the widget w inherits from its ancestors and QApplication::palette. More...
 
void paintBackground (QPainter *, const QRegion &, int flags=DrawAsRoot) const
 
bool paintOnScreen () const
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, int flags, QPainter *sharedPainter, QWidgetBackingStore *backingStore)
 
bool pointInsideRectAndMask (const QPoint &) const
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void propagatePaletteChange ()
 Propagate this widget's palette to all children, except style sheet widgets, and windows that don't enable window propagation (palettes don't normally propagate to windows). More...
 
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
void raise_sys ()
 
QPaintDeviceredirected (QPoint *offset) const
 
void registerDropSite (bool)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags, bool readyToRender)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void repaint_sys (const QRegion &rgn)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void resolveFont ()
 Determine which font is implicitly imposed on this widget by its ancestors and QApplication::font, resolve this against its own font (attributes from the implicit font are copied over). More...
 
void resolveLayoutDirection ()
 
void resolveLocale ()
 
void resolvePalette ()
 Determine which palette is inherited from this widget's ancestors and QApplication::palette, resolve this against this widget's palette (attributes from the inherited palette are copied over this widget's palette). More...
 
void restoreRedirected ()
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void scrollChildren (int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void sendStartupMessage (const char *message) const
 Platform-specific part of QWidget::show(). More...
 
void setConstraints_sys ()
 
void setCursor_sys (const QCursor &cursor)
 
void setDirtyOpaqueRegion ()
 
void setEnabled_helper (bool)
 
void setFocus_sys ()
 
void setFont_helper (const QFont &font)
 
void setGeometry_sys (int, int, int, int, bool)
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=0)
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void setMask_sys (const QRegion &)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
void setModal_sys ()
 
void setNetWmWindowTypes ()
 
void setOpaque (bool opaque)
 
void setPalette_helper (const QPalette &)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
void setSharedPainter (QPainter *painter)
 
void setStyle_helper (QStyle *newStyle, bool propagate, bool metalHack=false)
 
void setUpdatesEnabled_helper (bool)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys (bool forceReset=false)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowOpacity_sys (qreal opacity)
 
void setWindowRole ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWinId (WId)
 
QPaintersharedPainter () const
 
void show_helper ()
 
void show_recursive ()
 Makes the widget visible in the isVisible() meaning of the word. More...
 
void show_sys ()
 Platform-specific part of QWidget::show(). More...
 
void showChildren (bool spontaneous)
 
void stackUnder_sys (QWidget *)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=0, bool alsoNonOpaque=false) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
QTLWExtratopData () const
 
void unsetCursor_sys ()
 
void updateFont (const QFont &)
 Assign font to this widget, and propagate it to all children, except style sheet widgets (handled differently) and windows that don't enable window propagation. More...
 
void updateFrameStrut ()
 Computes the frame rectangle when needed. More...
 
void updateGeometry_helper (bool forceUpdate)
 
void updateIsOpaque ()
 
void updateIsTranslucent ()
 
void updateSystemBackground ()
 
void updateX11AcceptFocus ()
 
void x11UpdateIsOpaque ()
 
 ~QWidgetPrivate ()
 
- Public Functions inherited from QObjectPrivate
void _q_reregisterTimers (void *pointer)
 
void addConnection (int signal, Connection *c)
 
void cleanConnectionLists ()
 
void connectNotify (const char *signal)
 
void deleteChildren ()
 
void disconnectNotify (const char *signal)
 
bool isSender (const QObject *receiver, const char *signal) const
 
bool isSignalConnected (uint signalIdx) const
 Returns true if the signal with index signal_index from object sender is connected. More...
 
void moveToThread_helper ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void setParent_helper (QObject *)
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
int signalIndex (const char *signalName) const
 Returns the signal index used in the internal connectionLists vector. More...
 
virtual ~QObjectPrivate ()
 
- Public Functions inherited from QObjectData
virtual ~QObjectData ()=0
 

Public Variables

QActioncloseAction
 
QActionfacingModeAction
 
QActionfirstPageAction
 
QActionGroupfitGroup
 
QActionfitPageAction
 
QActionfitWidthAction
 
bool initialized
 
QActionlandscapeAction
 
QActionlastPageAction
 
QByteArray memberToDisconnectOnClose
 
QActionGroupmodeGroup
 
QActionGroupnavGroup
 
QActionnextPageAction
 
QActionGrouporientationGroup
 
QActionoverviewModeAction
 
bool ownPrinter
 
QLineEditpageNumEdit
 
QLabelpageNumLabel
 
QActionpageSetupAction
 
QActionportraitAction
 
QPrintPreviewWidgetpreview
 
QActionprevPageAction
 
QActionprintAction
 
QPrintDialogprintDialog
 
QPrinterprinter
 
QActionGroupprinterGroup
 
QPointer< QObjectreceiverToDisconnectOnClose
 
QActionsingleModeAction
 
QComboBoxzoomFactor
 
QActionGroupzoomGroup
 
QActionzoomInAction
 
QActionzoomOutAction
 
- Public Variables inherited from QDialogPrivate
bool doShowExtension
 
QPointer< QEventLoopeventLoop
 
QWidgetextension
 
QPoint lastRMBPress
 
QPointer< QPushButtonmainDef
 
QSize max
 
QSize min
 
Qt::Orientation orientation
 
int rescode
 
int resetModalityTo
 
QSizeGripresizer
 
QSize size
 
bool sizeGripEnabled
 
bool wasModalitySet
 
- Public Variables inherited from QWidgetPrivate
QString accessibleDescription
 
QString accessibleName
 
QList< QAction * > actions
 
QPalette::ColorRole bg_role: 8
 
signed char bottomLayoutItemMargin
 
short bottommargin
 
QWidgetData data
 
QRegion dirty
 
uint dirtyOpaqueChildren: 1
 
QWExtraextra
 
QPaintEngineextraPaintEngine
 
QPalette::ColorRole fg_role: 8
 
QWidgetfocus_child
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
QGraphicsEffectgraphicsEffect
 
Qt::HANDLE hd
 
uint high_attributes [4]
 
QPointer< QInputContextic
 
Qt::InputMethodHints imHints
 
uint inDirtyList: 1
 
uint inheritedFontResolveMask
 
uint inheritedPaletteResolveMask
 
uint inheritsInputMethodHints: 1
 
uint inSetParent: 1
 
uint isGLWidget: 1
 
uint isMoved: 1
 
uint isOpaque: 1
 
uint isScrolled: 1
 
QLayoutlayout
 
signed char leftLayoutItemMargin
 
short leftmargin
 
QLocale locale
 
QRegionneedsFlush
 
QRegion opaqueChildren
 
Qt::HANDLE picture
 
const QMetaObjectpolished
 
QPaintDeviceredirectDev
 
QPoint redirectOffset
 
signed char rightLayoutItemMargin
 
short rightmargin
 
QSizePolicy size_policy
 
QString statusTip
 
QString toolTip
 
signed char topLayoutItemMargin
 
short topmargin
 
uint usesDoubleBufferedGLContext: 1
 
QString whatsThis
 
QWidgetItemV2widgetItem
 
QX11Info xinfo
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  CloseMode { CloseNoEvent, CloseWithEvent, CloseWithSpontaneousEvent }
 
enum  Direction { DirectionNorth = 0x01, DirectionEast = 0x10, DirectionSouth = 0x02, DirectionWest = 0x20 }
 
enum  DrawWidgetFlags {
  DrawAsRoot = 0x01, DrawPaintOnScreen = 0x02, DrawRecursive = 0x04, DrawInvisible = 0x08,
  DontSubtractOpaqueChildren = 0x10, DontSetCompositionMode = 0x20, DontDrawOpaqueChildren = 0x40, DontDrawNativeChildren = 0x80
}
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
- Static Public Functions inherited from QWidgetPrivate
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=0)
 
static QGraphicsProxyWidgetnearestGraphicsProxyWidget (const QWidget *origin)
 Finds the nearest widget embedded in a graphics proxy widget along the chain formed by this widget and its ancestors. More...
 
static int pointToRect (const QPoint &p, const QRect &r)
 
static QRect screenGeometry (const QWidget *widget)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 
- Static Public Variables inherited from QWidgetPrivate
static QWidgetSetallWidgets = 0
 
static int instanceCounter = 0
 
static QWidgetkeyboardGrabber = 0
 
static QWidgetMappermapper = 0
 
static int maxInstances = 0
 
static QWidgetmouseGrabber = 0
 

Detailed Description

Definition at line 142 of file qprintpreviewdialog.cpp.

Constructors and Destructors

◆ QPrintPreviewDialogPrivate()

QPrintPreviewDialogPrivate::QPrintPreviewDialogPrivate ( )
inline

Functions

◆ _q_fit()

void QPrintPreviewDialogPrivate::_q_fit ( QAction action)

Definition at line 500 of file qprintpreviewdialog.cpp.

501 {
502  setFitting(true);
503  if (action == fitPageAction)
504  preview->fitInView();
505  else
506  preview->fitToWidth();
507 }
void fitInView()
This is a convenience function and is the same as calling {setZoomMode(QPrintPreviewWidget::FitInView...
void fitToWidth()
This is a convenience function and is the same as calling {setZoomMode(QPrintPreviewWidget::FitToWidt...

◆ _q_navigate()

void QPrintPreviewDialogPrivate::_q_navigate ( QAction action)

Definition at line 531 of file qprintpreviewdialog.cpp.

532 {
533  int curPage = preview->currentPage();
534  if (action == prevPageAction)
535  preview->setCurrentPage(curPage - 1);
536  else if (action == nextPageAction)
537  preview->setCurrentPage(curPage + 1);
538  else if (action == firstPageAction)
540  else if (action == lastPageAction)
543 }
int pageCount() const
Returns the number of pages in the preview.
void setCurrentPage(int pageNumber)
Sets the current page in the preview.
int currentPage() const
Returns the currently viewed page in the preview.

◆ _q_pageNumEdited()

void QPrintPreviewDialogPrivate::_q_pageNumEdited ( )

Definition at line 523 of file qprintpreviewdialog.cpp.

524 {
525  bool ok = false;
526  int res = pageNumEdit->text().toInt(&ok);
527  if (ok)
528  preview->setCurrentPage(res);
529 }
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
Definition: qstring.cpp:6090
QString text
the line edit&#39;s text
Definition: qlineedit.h:72
void setCurrentPage(int pageNumber)
Sets the current page in the preview.

◆ _q_pageSetup()

void QPrintPreviewDialogPrivate::_q_pageSetup ( )

Definition at line 605 of file qprintpreviewdialog.cpp.

606 {
608 
609  QPageSetupDialog pageSetup(printer, q);
610  if (pageSetup.exec() == QDialog::Accepted) {
611  // update possible orientation changes
613  portraitAction->setChecked(true);
615  }else {
618  }
619  }
620 }
#define Q_Q(Class)
Definition: qglobal.h:2483
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer...
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
void setPortraitOrientation()
This is a convenience function and is the same as calling {setOrientation(QPrinter::Portrait)}.
QPrinter::Orientation orientation() const
Returns the current orientation of the preview.
void setChecked(bool)
Definition: qaction.cpp:1138
void setLandscapeOrientation()
This is a convenience function and is the same as calling {setOrientation(QPrinter::Landscape)}.

◆ _q_previewChanged()

void QPrintPreviewDialogPrivate::_q_previewChanged ( )

◆ _q_print()

void QPrintPreviewDialogPrivate::_q_print ( )

Definition at line 568 of file qprintpreviewdialog.cpp.

569 {
571 
572 #if defined(Q_WS_WIN) || defined(Q_WS_MAC)
574  QString title;
575  QString suffix;
577  title = QCoreApplication::translate("QPrintPreviewDialog", "Export to PDF");
578  suffix = QLatin1String(".pdf");
579  } else {
580  title = QCoreApplication::translate("QPrintPreviewDialog", "Export to PostScript");
581  suffix = QLatin1String(".ps");
582  }
584  QLatin1Char('*') + suffix);
585  if (!fileName.isEmpty()) {
586  if (QFileInfo(fileName).suffix().isEmpty())
587  fileName.append(suffix);
588  printer->setOutputFileName(fileName);
589  }
590  if (!printer->outputFileName().isEmpty())
591  preview->print();
592  q->accept();
593  return;
594  }
595 #endif
596 
597  if (!printDialog)
598  printDialog = new QPrintDialog(printer, q);
599  if (printDialog->exec() == QDialog::Accepted) {
600  preview->print();
601  q->accept();
602  }
603 }
void print()
Prints the preview to the printer associated with the preview.
static QString getSaveFileName(QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0)
This is a convenience static function that will return a file name selected by the user...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
Definition: qstring.h:83
QString outputFileName() const
Returns the name of the output file.
Definition: qprinter.cpp:950
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
#define Q_Q(Class)
Definition: qglobal.h:2483
The QPrintDialog class provides a dialog for specifying the printer&#39;s configuration.
Definition: qprintdialog.h:81
OutputFormat outputFormat() const
Returns the output format for this printer.
Definition: qprinter.cpp:813
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
int exec()
Reimplemented Function
QString & append(QChar c)
Definition: qstring.cpp:1777
QString suffix() const
Returns the suffix of the file.
Definition: qfileinfo.cpp:834
QByteArray suffix
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:60
static QString fileName(const QString &fileUrl)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55
void setOutputFileName(const QString &)
Sets the name of the output file to fileName.
Definition: qprinter.cpp:976

◆ _q_setMode()

void QPrintPreviewDialogPrivate::_q_setMode ( QAction action)

Definition at line 545 of file qprintpreviewdialog.cpp.

546 {
547  if (action == overviewModeAction) {
549  setFitting(false);
550  fitGroup->setEnabled(false);
551  navGroup->setEnabled(false);
552  pageNumEdit->setEnabled(false);
553  pageNumLabel->setEnabled(false);
554  } else if (action == facingModeAction) {
556  } else {
558  }
559  if (action == facingModeAction || action == singleModeAction) {
560  fitGroup->setEnabled(true);
561  navGroup->setEnabled(true);
562  pageNumEdit->setEnabled(true);
563  pageNumLabel->setEnabled(true);
564  setFitting(true);
565  }
566 }
void setViewMode(ViewMode viewMode)
Sets the view mode to mode.
void setEnabled(bool)
Definition: qwidget.cpp:3447
void setEnabled(bool)

◆ _q_zoomFactorChanged()

void QPrintPreviewDialogPrivate::_q_zoomFactorChanged ( )

Definition at line 629 of file qprintpreviewdialog.cpp.

630 {
632  bool ok;
633  qreal factor = text.remove(QLatin1Char('%')).toFloat(&ok);
634  factor = qMax(qreal(1.0), qMin(qreal(1000.0), factor));
635  if (ok) {
636  preview->setZoomFactor(factor/100.0);
637  zoomFactor->setEditText(QString::fromLatin1("%1%").arg(factor));
638  setFitting(false);
639  }
640 }
float toFloat(bool *ok=0) const
Definition: qstring.cpp:6257
double qreal
Definition: qglobal.h:1193
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
The QString class provides a Unicode character string.
Definition: qstring.h:83
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217
QString text
the line edit&#39;s text
Definition: qlineedit.h:72
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
void setZoomFactor(qreal zoomFactor)
Sets the zoom factor of the view to factor.
QLineEdit * lineEdit() const
Returns the line edit used to edit items in the combobox, or 0 if there is no line edit...
Definition: qcombobox.cpp:1858
QString & remove(int i, int len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
Definition: qstring.cpp:1867
void setEditText(const QString &text)
Sets the text in the combobox&#39;s text edit.
Definition: qcombobox.cpp:2776
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55
#define text
Definition: qobjectdefs.h:80

◆ _q_zoomIn()

void QPrintPreviewDialogPrivate::_q_zoomIn ( )

Definition at line 509 of file qprintpreviewdialog.cpp.

510 {
511  setFitting(false);
512  preview->zoomIn();
514 }
void zoomIn(qreal zoom=1.1)
Zooms the current view in by factor.

◆ _q_zoomOut()

void QPrintPreviewDialogPrivate::_q_zoomOut ( )

Definition at line 516 of file qprintpreviewdialog.cpp.

517 {
518  setFitting(false);
519  preview->zoomOut();
521 }
void zoomOut(qreal zoom=1.1)
Zooms the current view out by factor.

◆ init()

void QPrintPreviewDialogPrivate::init ( QPrinter printer = 0)

Definition at line 218 of file qprintpreviewdialog.cpp.

219 {
221 
222  if (_printer) {
223  preview = new QPrintPreviewWidget(_printer, q);
224  printer = _printer;
225  } else {
226  ownPrinter = true;
227  printer = new QPrinter;
228  preview = new QPrintPreviewWidget(printer, q);
229  }
230  QObject::connect(preview, SIGNAL(paintRequested(QPrinter*)), q, SIGNAL(paintRequested(QPrinter*)));
231  QObject::connect(preview, SIGNAL(previewChanged()), q, SLOT(_q_previewChanged()));
232  setupActions();
233 
234  pageNumEdit = new LineEdit;
237  pageNumLabel = new QLabel;
238  QObject::connect(pageNumEdit, SIGNAL(editingFinished()), q, SLOT(_q_pageNumEdited()));
239 
240  zoomFactor = new QComboBox;
241  zoomFactor->setEditable(true);
244  LineEdit *zoomEditor = new LineEdit;
245  zoomEditor->setValidator(new ZoomFactorValidator(1, 1000, 1, zoomEditor));
246  zoomFactor->setLineEdit(zoomEditor);
247  static const short factorsX2[] = { 25, 50, 100, 200, 250, 300, 400, 800, 1600 };
248  for (int i = 0; i < int(sizeof(factorsX2) / sizeof(factorsX2[0])); ++i)
249  zoomFactor->addItem(QPrintPreviewDialog::tr("%1%").arg(factorsX2[i] / 2.0));
250  QObject::connect(zoomFactor->lineEdit(), SIGNAL(editingFinished()),
251  q, SLOT(_q_zoomFactorChanged()));
252  QObject::connect(zoomFactor, SIGNAL(currentIndexChanged(int)),
253  q, SLOT(_q_zoomFactorChanged()));
254 
255  QPrintPreviewMainWindow *mw = new QPrintPreviewMainWindow(q);
256  QToolBar *toolbar = new QToolBar(mw);
257  toolbar->addAction(fitWidthAction);
258  toolbar->addAction(fitPageAction);
259  toolbar->addSeparator();
260  toolbar->addWidget(zoomFactor);
261  toolbar->addAction(zoomOutAction);
262  toolbar->addAction(zoomInAction);
263  toolbar->addSeparator();
264  toolbar->addAction(portraitAction);
265  toolbar->addAction(landscapeAction);
266  toolbar->addSeparator();
267  toolbar->addAction(firstPageAction);
268  toolbar->addAction(prevPageAction);
269 
270  // this is to ensure the label text and the editor text are
271  // aligned in all styles - the extra QVBoxLayout is a workaround
272  // for bug in QFormLayout
273  QWidget *pageEdit = new QWidget(toolbar);
274  QVBoxLayout *vboxLayout = new QVBoxLayout;
275  vboxLayout->setContentsMargins(0, 0, 0, 0);
276 #ifdef Q_WS_MAC
277  // We query the widgets about their size and then we fix the size.
278  // This should do the trick for the laying out part...
279  QSize pageNumEditSize, pageNumLabelSize;
280  pageNumEditSize = pageNumEdit->minimumSizeHint();
281  pageNumLabelSize = pageNumLabel->minimumSizeHint();
282  pageNumEdit->resize(pageNumEditSize);
283  pageNumLabel->resize(pageNumLabelSize);
284 #endif
285  QFormLayout *formLayout = new QFormLayout;
286 #ifdef Q_WS_MAC
287  // We have to change the growth policy in Mac.
289 #endif
292  vboxLayout->addLayout(formLayout);
293  vboxLayout->setAlignment(Qt::AlignVCenter);
294  pageEdit->setLayout(vboxLayout);
295  toolbar->addWidget(pageEdit);
296 
297  toolbar->addAction(nextPageAction);
298  toolbar->addAction(lastPageAction);
299  toolbar->addSeparator();
300  toolbar->addAction(singleModeAction);
301  toolbar->addAction(facingModeAction);
302  toolbar->addAction(overviewModeAction);
303  toolbar->addSeparator();
304  toolbar->addAction(pageSetupAction);
305  toolbar->addAction(printAction);
306 #if defined(Q_WS_MAC) && !defined(QT_MAC_USE_COCOA)
307  toolbar->addAction(closeAction);
308 #endif
309 
310  // Cannot use the actions' triggered signal here, since it doesn't autorepeat
311  QToolButton *zoomInButton = static_cast<QToolButton *>(toolbar->widgetForAction(zoomInAction));
312  QToolButton *zoomOutButton = static_cast<QToolButton *>(toolbar->widgetForAction(zoomOutAction));
313  zoomInButton->setAutoRepeat(true);
314  zoomInButton->setAutoRepeatInterval(200);
315  zoomInButton->setAutoRepeatDelay(200);
316  zoomOutButton->setAutoRepeat(true);
317  zoomOutButton->setAutoRepeatInterval(200);
318  zoomOutButton->setAutoRepeatDelay(200);
319  QObject::connect(zoomInButton, SIGNAL(clicked()), q, SLOT(_q_zoomIn()));
320  QObject::connect(zoomOutButton, SIGNAL(clicked()), q, SLOT(_q_zoomOut()));
321 
322  mw->addToolBar(toolbar);
323  mw->setCentralWidget(preview);
324  // QMainWindows are always created as top levels, force it to be a
325  // plain widget
326  mw->setParent(q, Qt::Widget);
327 
328  QVBoxLayout *topLayout = new QVBoxLayout;
329  topLayout->addWidget(mw);
330  topLayout->setMargin(0);
331  q->setLayout(topLayout);
332 
333  QString caption = QCoreApplication::translate("QPrintPreviewDialog", "Print Preview");
334  if (!printer->docName().isEmpty())
335  caption += QString::fromLatin1(": ") + printer->docName();
336  q->setWindowTitle(caption);
337 
338  if (!printer->isValid()
339 #if defined(Q_WS_WIN) || defined(Q_WS_MAC)
340  || printer->outputFormat() != QPrinter::NativeFormat
341 #endif
342  )
343  pageSetupAction->setEnabled(false);
344  preview->setFocus();
345 }
void setInsertPolicy(InsertPolicy policy)
Definition: qcombobox.cpp:1603
void setAlignment(Qt::Alignment flag)
Definition: qlineedit.cpp:827
void setAutoRepeatDelay(int)
QString docName() const
Returns the document name.
Definition: qprinter.cpp:1035
void setLayout(QLayout *)
Sets the layout manager for this widget to layout.
Definition: qwidget.cpp:10104
void setMinimumContentsLength(int characters)
Definition: qcombobox.cpp:1660
void addLayout(QLayout *layout, int stretch=0)
Adds layout to the end of the box, with serial stretch factor stretch.
#define SLOT(a)
Definition: qobjectdefs.h:226
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QSize minimumSizeHint() const
Returns a minimum size for the line edit.
Definition: qlineedit.cpp:725
The QString class provides a Unicode character string.
Definition: qstring.h:83
QWidget * widgetForAction(QAction *action) const
Returns the widget associated with the specified action.
Definition: qtoolbar.cpp:1358
void addItem(const QString &text, const QVariant &userData=QVariant())
Adds an item to the combobox with the given text, and containing the specified userData (stored in th...
Definition: qcombobox.h:323
void addWidget(QWidget *, int stretch=0, Qt::Alignment alignment=0)
Adds widget to the end of this box layout, with a stretch factor of stretch and alignment alignment...
NSToolbar * toolbar
void setEnabled(bool)
Definition: qaction.cpp:1192
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
#define Q_Q(Class)
Definition: qglobal.h:2483
void setAutoRepeat(bool)
void setWidget(int row, ItemRole role, QWidget *widget)
Sets the widget in the given row for the given role to widget, extending the layout with empty rows i...
#define SIGNAL(a)
Definition: qobjectdefs.h:227
OutputFormat outputFormat() const
Returns the output format for this printer.
Definition: qprinter.cpp:813
void setEditable(bool editable)
Definition: qcombobox.cpp:1759
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
The QToolBar class provides a movable panel that contains a set of controls.
Definition: qtoolbar.h:62
The QPrinter class is a paint device that paints on a printer.
Definition: qprinter.h:66
The QComboBox widget is a combined button and popup list.
Definition: qcombobox.h:62
bool isValid() const
Returns true if the printer currently selected is a valid printer in the system, or a pure PDF/PostSc...
Definition: qprinter.cpp:895
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
void setLineEdit(QLineEdit *edit)
Sets the line edit to use instead of the current line edit widget.
Definition: qcombobox.cpp:1797
QAction * addSeparator()
Adds a separator to the end of the toolbar.
Definition: qtoolbar.cpp:936
void setFocus()
Gives the keyboard input focus to this widget (or its focus proxy) if this widget or one of its paren...
Definition: qwidget.h:432
The QPrintPreviewWidget class provides a widget for previewing page layouts for printer output...
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
Definition: qstring.cpp:7186
void resize(int w, int h)
This corresponds to resize(QSize(w, h)).
Definition: qwidget.h:1014
void setFieldGrowthPolicy(FieldGrowthPolicy policy)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
void setAutoRepeatInterval(int)
QAction * addWidget(QWidget *widget)
Adds the given widget to the toolbar as the toolbar&#39;s last item.
Definition: qtoolbar.cpp:973
The QLabel widget provides a text or image display.
Definition: qlabel.h:55
void setContentsMargins(int left, int top, int right, int bottom)
Sets the left, top, right, and bottom margins to use around the layout.
Definition: qlayout.cpp:502
The QFormLayout class manages forms of input widgets and their associated labels. ...
Definition: qformlayout.h:55
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
QLineEdit * lineEdit() const
Returns the line edit used to edit items in the combobox, or 0 if there is no line edit...
Definition: qcombobox.cpp:1858
The QVBoxLayout class lines up widgets vertically.
Definition: qboxlayout.h:149
The QToolButton class provides a quick-access button to commands or options, usually used inside a QT...
Definition: qtoolbutton.h:59
void setSizePolicy(QSizePolicy)
Definition: qwidget.cpp:10198
QAction * addAction(const QString &text)
Creates a new action with the given text.
Definition: qtoolbar.cpp:868
void setMargin(int)
Definition: qlayout.cpp:464
QSize minimumSizeHint() const
Reimplemented Function
Definition: qlabel.cpp:958
bool setAlignment(QWidget *w, Qt::Alignment alignment)
Sets the alignment for widget w to alignment and returns true if w is found in this layout (not inclu...
Definition: qlayout.cpp:332

◆ isFitting()

bool QPrintPreviewDialogPrivate::isFitting ( )

Definition at line 443 of file qprintpreviewdialog.cpp.

444 {
445  return (fitGroup->isExclusive()
447 }
bool isChecked() const
Definition: qaction.cpp:1151
bool isExclusive() const

◆ layoutPages()

void QPrintPreviewDialogPrivate::layoutPages ( )

◆ populateScene()

void QPrintPreviewDialogPrivate::populateScene ( )

◆ setFitting()

void QPrintPreviewDialogPrivate::setFitting ( bool  on)

Definition at line 450 of file qprintpreviewdialog.cpp.

451 {
452  if (isFitting() == on)
453  return;
454  fitGroup->setExclusive(on);
455  if (on) {
457  action->setChecked(true);
458  if (fitGroup->checkedAction() != action) {
459  // work around exclusitivity problem
460  fitGroup->removeAction(action);
461  fitGroup->addAction(action);
462  }
463  } else {
464  fitWidthAction->setChecked(false);
465  fitPageAction->setChecked(false);
466  }
467 }
void removeAction(QAction *a)
Removes the action from this group.
QAction * checkedAction() const
Returns the currently checked action in the group, or 0 if none are checked.
QAction * addAction(QAction *a)
Adds the action to this group, and returns it.
void setExclusive(bool)
void setChecked(bool)
Definition: qaction.cpp:1138
bool isChecked() const
Definition: qaction.cpp:1151
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64

◆ setupActions()

void QPrintPreviewDialogPrivate::setupActions ( )

Definition at line 356 of file qprintpreviewdialog.cpp.

357 {
359 
360  // Navigation
361  navGroup = new QActionGroup(q);
362  navGroup->setExclusive(false);
363  nextPageAction = navGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Next page"));
364  prevPageAction = navGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Previous page"));
365  firstPageAction = navGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "First page"));
366  lastPageAction = navGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Last page"));
372 
373 
374  fitGroup = new QActionGroup(q);
375  fitWidthAction = fitGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Fit width"));
376  fitPageAction = fitGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Fit page"));
377  fitWidthAction->setObjectName(QLatin1String("fitWidthAction"));
378  fitPageAction->setObjectName(QLatin1String("fitPageAction"));
383  QObject::connect(fitGroup, SIGNAL(triggered(QAction*)), q, SLOT(_q_fit(QAction*)));
384 
385  // Zoom
386  zoomGroup = new QActionGroup(q);
387  zoomInAction = zoomGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Zoom in"));
388  zoomOutAction = zoomGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Zoom out"));
391 
392  // Portrait/Landscape
394  portraitAction = orientationGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Portrait"));
395  landscapeAction = orientationGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Landscape"));
398  qt_setupActionIcon(portraitAction, QLatin1String("layout-portrait"));
399  qt_setupActionIcon(landscapeAction, QLatin1String("layout-landscape"));
400  QObject::connect(portraitAction, SIGNAL(triggered(bool)), preview, SLOT(setPortraitOrientation()));
401  QObject::connect(landscapeAction, SIGNAL(triggered(bool)), preview, SLOT(setLandscapeOrientation()));
402 
403  // Display mode
404  modeGroup = new QActionGroup(q);
405  singleModeAction = modeGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Show single page"));
406  facingModeAction = modeGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Show facing pages"));
407  overviewModeAction = modeGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Show overview of all pages"));
411  singleModeAction->setObjectName(QLatin1String("singleModeAction"));
412  facingModeAction->setObjectName(QLatin1String("facingModeAction"));
413  overviewModeAction->setObjectName(QLatin1String("overviewModeAction"));
414 
419 
420  // Print
421  printerGroup = new QActionGroup(q);
422  printAction = printerGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Print"));
423  pageSetupAction = printerGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Page setup"));
426  QObject::connect(printAction, SIGNAL(triggered(bool)), q, SLOT(_q_print()));
427  QObject::connect(pageSetupAction, SIGNAL(triggered(bool)), q, SLOT(_q_pageSetup()));
428 #if defined(Q_WS_MAC) && !defined(QT_MAC_USE_COCOA)
429  closeAction = printerGroup->addAction(QCoreApplication::translate("QPrintPreviewDialog", "Close"));
430  QObject::connect(closeAction, SIGNAL(triggered(bool)), q, SLOT(reject()));
431 #endif
432 
433  // Initial state:
434  fitPageAction->setChecked(true);
437  portraitAction->setChecked(true);
438  else
440 }
void _q_navigate(QAction *action)
void setCheckable(bool)
Definition: qaction.cpp:1094
#define SLOT(a)
Definition: qobjectdefs.h:226
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QActionGroup class groups actions together.
Definition: qactiongroup.h:57
static QString translate(const char *context, const char *key, const char *disambiguation=0, Encoding encoding=CodecForTr)
void setObjectName(const QString &name)
Definition: qobject.cpp:1112
#define Q_Q(Class)
Definition: qglobal.h:2483
#define SIGNAL(a)
Definition: qobjectdefs.h:227
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
Definition: qobject.cpp:2580
QAction * addAction(QAction *a)
Adds the action to this group, and returns it.
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
QPrinter::Orientation orientation() const
Returns the current orientation of the preview.
void setExclusive(bool)
void setChecked(bool)
Definition: qaction.cpp:1138
void _q_setMode(QAction *action)
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64
static void qt_setupActionIcon(QAction *action, const QLatin1String &name)

◆ updateNavActions()

void QPrintPreviewDialogPrivate::updateNavActions ( )

Definition at line 469 of file qprintpreviewdialog.cpp.

470 {
471  int curPage = preview->currentPage();
472  int numPages = preview->pageCount();
473  nextPageAction->setEnabled(curPage < numPages);
474  prevPageAction->setEnabled(curPage > 1);
475  firstPageAction->setEnabled(curPage > 1);
476  lastPageAction->setEnabled(curPage < numPages);
478 }
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qstring.cpp:6448
void setEnabled(bool)
Definition: qaction.cpp:1192
int pageCount() const
Returns the number of pages in the preview.
void setText(const QString &)
Definition: qlineedit.cpp:401
int currentPage() const
Returns the currently viewed page in the preview.

◆ updatePageNumLabel()

void QPrintPreviewDialogPrivate::updatePageNumLabel ( )

Definition at line 480 of file qprintpreviewdialog.cpp.

481 {
483 
484  int numPages = preview->pageCount();
485  int maxChars = QString::number(numPages).length();
486  pageNumLabel->setText(QString::fromLatin1("/ %1").arg(numPages));
487  int cyphersWidth = q->fontMetrics().width(QString().fill(QLatin1Char('8'), maxChars));
488  int maxWidth = pageNumEdit->minimumSizeHint().width() + cyphersWidth;
489  pageNumEdit->setMinimumWidth(maxWidth);
490  pageNumEdit->setMaximumWidth(maxWidth);
492  // any old one will be deleted later along with its parent pageNumEdit
493 }
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qstring.cpp:6448
void setText(const QString &)
Definition: qlabel.cpp:366
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
QSize minimumSizeHint() const
Returns a minimum size for the line edit.
Definition: qlineedit.cpp:725
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
Definition: qvalidator.h:96
#define Q_Q(Class)
Definition: qglobal.h:2483
int width() const
Returns the width.
Definition: qsize.h:126
void setMaximumWidth(int maxw)
Definition: qwidget.cpp:4343
void setValidator(const QValidator *)
Sets this line edit to only accept input that the validator, v, will accept.
Definition: qlineedit.cpp:627
The QPrintPreviewDialog class provides a dialog for previewing and configuring page layouts for print...
int pageCount() const
Returns the number of pages in the preview.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Definition: qstring.cpp:4188
void setMinimumWidth(int minw)
Definition: qwidget.cpp:4325
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ updateZoomFactor()

void QPrintPreviewDialogPrivate::updateZoomFactor ( )

Definition at line 495 of file qprintpreviewdialog.cpp.

496 {
497  zoomFactor->lineEdit()->setText(QString().sprintf("%.1f%%", preview->zoomFactor()*100));
498 }
The QString class provides a Unicode character string.
Definition: qstring.h:83
void setText(const QString &)
Definition: qlineedit.cpp:401
qreal zoomFactor() const
Returns the zoom factor of the view.
QLineEdit * lineEdit() const
Returns the line edit used to edit items in the combobox, or 0 if there is no line edit...
Definition: qcombobox.cpp:1858

Properties

◆ closeAction

QAction* QPrintPreviewDialogPrivate::closeAction

Definition at line 211 of file qprintpreviewdialog.cpp.

◆ facingModeAction

QAction* QPrintPreviewDialogPrivate::facingModeAction

Definition at line 204 of file qprintpreviewdialog.cpp.

◆ firstPageAction

QAction* QPrintPreviewDialogPrivate::firstPageAction

Definition at line 187 of file qprintpreviewdialog.cpp.

◆ fitGroup

QActionGroup* QPrintPreviewDialogPrivate::fitGroup

Definition at line 190 of file qprintpreviewdialog.cpp.

◆ fitPageAction

QAction* QPrintPreviewDialogPrivate::fitPageAction

Definition at line 192 of file qprintpreviewdialog.cpp.

◆ fitWidthAction

QAction* QPrintPreviewDialogPrivate::fitWidthAction

Definition at line 191 of file qprintpreviewdialog.cpp.

◆ initialized

bool QPrintPreviewDialogPrivate::initialized

Definition at line 176 of file qprintpreviewdialog.cpp.

◆ landscapeAction

QAction* QPrintPreviewDialogPrivate::landscapeAction

Definition at line 200 of file qprintpreviewdialog.cpp.

◆ lastPageAction

QAction* QPrintPreviewDialogPrivate::lastPageAction

Definition at line 188 of file qprintpreviewdialog.cpp.

◆ memberToDisconnectOnClose

QByteArray QPrintPreviewDialogPrivate::memberToDisconnectOnClose

Definition at line 215 of file qprintpreviewdialog.cpp.

◆ modeGroup

QActionGroup* QPrintPreviewDialogPrivate::modeGroup

Definition at line 202 of file qprintpreviewdialog.cpp.

◆ navGroup

QActionGroup* QPrintPreviewDialogPrivate::navGroup

Definition at line 184 of file qprintpreviewdialog.cpp.

◆ nextPageAction

QAction* QPrintPreviewDialogPrivate::nextPageAction

Definition at line 185 of file qprintpreviewdialog.cpp.

◆ orientationGroup

QActionGroup* QPrintPreviewDialogPrivate::orientationGroup

Definition at line 198 of file qprintpreviewdialog.cpp.

◆ overviewModeAction

QAction* QPrintPreviewDialogPrivate::overviewModeAction

Definition at line 205 of file qprintpreviewdialog.cpp.

◆ ownPrinter

bool QPrintPreviewDialogPrivate::ownPrinter

Definition at line 175 of file qprintpreviewdialog.cpp.

◆ pageNumEdit

QLineEdit* QPrintPreviewDialogPrivate::pageNumEdit

Definition at line 179 of file qprintpreviewdialog.cpp.

◆ pageNumLabel

QLabel* QPrintPreviewDialogPrivate::pageNumLabel

Definition at line 180 of file qprintpreviewdialog.cpp.

◆ pageSetupAction

QAction* QPrintPreviewDialogPrivate::pageSetupAction

Definition at line 209 of file qprintpreviewdialog.cpp.

◆ portraitAction

QAction* QPrintPreviewDialogPrivate::portraitAction

Definition at line 199 of file qprintpreviewdialog.cpp.

◆ preview

QPrintPreviewWidget* QPrintPreviewDialogPrivate::preview

Definition at line 173 of file qprintpreviewdialog.cpp.

◆ prevPageAction

QAction* QPrintPreviewDialogPrivate::prevPageAction

Definition at line 186 of file qprintpreviewdialog.cpp.

◆ printAction

QAction* QPrintPreviewDialogPrivate::printAction

Definition at line 208 of file qprintpreviewdialog.cpp.

◆ printDialog

QPrintDialog* QPrintPreviewDialogPrivate::printDialog

Definition at line 172 of file qprintpreviewdialog.cpp.

◆ printer

QPrinter* QPrintPreviewDialogPrivate::printer

Definition at line 174 of file qprintpreviewdialog.cpp.

◆ printerGroup

QActionGroup* QPrintPreviewDialogPrivate::printerGroup

Definition at line 207 of file qprintpreviewdialog.cpp.

◆ receiverToDisconnectOnClose

QPointer<QObject> QPrintPreviewDialogPrivate::receiverToDisconnectOnClose

Definition at line 214 of file qprintpreviewdialog.cpp.

◆ singleModeAction

QAction* QPrintPreviewDialogPrivate::singleModeAction

Definition at line 203 of file qprintpreviewdialog.cpp.

◆ zoomFactor

QComboBox* QPrintPreviewDialogPrivate::zoomFactor

Definition at line 181 of file qprintpreviewdialog.cpp.

◆ zoomGroup

QActionGroup* QPrintPreviewDialogPrivate::zoomGroup

Definition at line 194 of file qprintpreviewdialog.cpp.

◆ zoomInAction

QAction* QPrintPreviewDialogPrivate::zoomInAction

Definition at line 195 of file qprintpreviewdialog.cpp.

◆ zoomOutAction

QAction* QPrintPreviewDialogPrivate::zoomOutAction

Definition at line 196 of file qprintpreviewdialog.cpp.


The documentation for this class was generated from the following file: