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
QPrintPreviewDialogPrivate Class Reference
+ Inheritance diagram for QPrintPreviewDialogPrivate:
+ Collaboration diagram for QPrintPreviewDialogPrivate:

Public Member Functions

 QPrintPreviewDialogPrivate ()
 
void _q_fit (QAction *action)
 
void _q_zoomIn ()
 
void _q_zoomOut ()
 
void _q_navigate (QAction *action)
 
void _q_setMode (QAction *action)
 
void _q_pageNumEdited ()
 
void _q_print ()
 
void _q_pageSetup ()
 
void _q_previewChanged ()
 
void _q_zoomFactorChanged ()
 
void init (QPrinter *printer=nullptr)
 
void populateScene ()
 
void layoutPages ()
 
void setupActions ()
 
void updateNavActions ()
 
void setFitting (bool on)
 
bool isFitting ()
 
void updatePageNumLabel ()
 
void updateZoomFactor ()
 
- Public Member Functions inherited from QDialogPrivate
 QDialogPrivate ()
 
 ~QDialogPrivate ()
 
virtual void setVisible (bool visible)
 
QWindowtransientParentWindow () const
 
bool setNativeDialogVisible (bool visible)
 
QVariant styleHint (QPlatformDialogHelper::StyleHint hint) const
 
void resetModalitySetByOpen ()
 
QPlatformDialogHelperplatformHelper () const
 
virtual bool canBeNativeDialog () const
 
void close (int resultCode)
 
- Public Member Functions inherited from QWidgetPrivate
 QWidgetPrivate (int version=QObjectPrivateVersion)
 
 ~QWidgetPrivate ()
 
QWExtraextraData () const
 
QTLWExtratopData () const
 
QTLWExtramaybeTopData () const
 
QPaintersharedPainter () const
 
void setSharedPainter (QPainter *painter)
 
QWidgetRepaintManagermaybeRepaintManager () const
 
QRhirhi () const
 
QWindowwindowHandle (WindowHandleMode mode=WindowHandleMode::Direct) const
 
QWindow_q_closestWindowHandle () const
 
QScreenassociatedScreen () const
 
template<typename T >
void repaint (T t)
 
template<typename T >
void update (T t)
 
void init (QWidget *desktopWidget, Qt::WindowFlags f)
 
void create ()
 
void createRecursively ()
 
void createWinId ()
 
bool setScreenForPoint (const QPoint &pos)
 
bool setScreen (QScreen *screen)
 
void createTLExtra ()
 
void createExtra ()
 
void deleteExtra ()
 
void createSysExtra ()
 
void deleteSysExtra ()
 
void createTLSysExtra ()
 
void deleteTLSysExtra ()
 
void updateSystemBackground ()
 
void propagatePaletteChange ()
 
void setPalette_helper (const QPalette &)
 
void resolvePalette ()
 
QPalette naturalWidgetPalette (QPalette::ResolveMask inheritedMask) const
 
void setMask_sys (const QRegion &)
 
void raise_sys ()
 
void lower_sys ()
 
void stackUnder_sys (QWidget *)
 
QWidgetdeepestFocusProxy () const
 
void setFocus_sys ()
 
void updateFocusChild ()
 
void updateFont (const QFont &)
 
void setFont_helper (const QFont &font)
 
QFont localFont () const
 
void resolveFont ()
 
QFont naturalWidgetFont (uint inheritedMask) const
 
void setLayoutDirection_helper (Qt::LayoutDirection)
 
void resolveLayoutDirection ()
 
void setLocale_helper (const QLocale &l, bool forceUpdate=false)
 
void resolveLocale ()
 
void setStyle_helper (QStyle *newStyle, bool propagate)
 
void inheritStyle ()
 
void setUpdatesEnabled_helper (bool)
 
bool updateBrushOrigin (QPainter *, const QBrush &brush) const
 
void paintBackground (QPainter *, const QRegion &, DrawWidgetFlags flags=DrawAsRoot) const
 
bool isAboutToShow () const
 The graphicsEffect function returns a pointer to the widget's graphics effect.
 
QRegion prepareToRender (const QRegion &region, QWidget::RenderFlags renderFlags)
 
void render_helper (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags)
 
void drawWidget (QPaintDevice *pdev, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter=nullptr, QWidgetRepaintManager *repaintManager=nullptr)
 
void sendPaintEvent (const QRegion &toBePainted)
 
void paintSiblingsRecursive (QPaintDevice *pdev, const QObjectList &children, int index, const QRegion &rgn, const QPoint &offset, DrawWidgetFlags flags, QPainter *sharedPainter, QWidgetRepaintManager *repaintManager)
 
bool shouldPaintOnScreen () const
 
void paintOnScreen (const QRegion &rgn)
 
QRect clipRect () const
 
QRegion clipRegion () const
 
void setSystemClip (QPaintEngine *paintEngine, qreal devicePixelRatio, const QRegion &region)
 
void subtractOpaqueChildren (QRegion &rgn, const QRect &clipRect) const
 
void subtractOpaqueSiblings (QRegion &source, bool *hasDirtySiblingsAbove=nullptr, bool alsoNonOpaque=false) const
 
void clipToEffectiveMask (QRegion &region) const
 
void updateIsOpaque ()
 
void setOpaque (bool opaque)
 
void updateIsTranslucent ()
 
const QRegiongetOpaqueChildren () const
 
void setDirtyOpaqueRegion ()
 
bool close ()
 
bool handleClose (CloseMode mode)
 
void setWindowIcon_helper ()
 
void setWindowIcon_sys ()
 
void setWindowOpacity_sys (qreal opacity)
 
void adjustQuitOnCloseAttribute ()
 
void scrollChildren (int dx, int dy)
 
void moveRect (const QRect &, int dx, int dy)
 
void scrollRect (const QRect &, int dx, int dy)
 
void invalidateBackingStore_resizeHelper (const QPoint &oldPos, const QSize &oldSize)
 Invalidates the backing store when the widget is resized.
 
template<class T >
void invalidateBackingStore (const T &)
 
QRegion overlappedRegion (const QRect &rect, bool breakAfterFirst=false) const
 
bool isOverlapped (const QRect &rect) const
 
void syncBackingStore ()
 
void syncBackingStore (const QRegion &region)
 
bool shouldDiscardSyncRequest () const
 
void updateWidgetTransform (QEvent *event)
 
void reparentFocusWidgets (QWidget *oldtlw)
 
void setWinId (WId)
 
void showChildren (bool spontaneous)
 
void hideChildren (bool spontaneous)
 
void setParent_sys (QWidget *parent, Qt::WindowFlags)
 
void reparentWidgetWindows (QWidget *parentWithWindow, Qt::WindowFlags windowFlags={})
 
void reparentWidgetWindowChildren (QWidget *parentWithWindow)
 
void scroll_sys (int dx, int dy)
 
void scroll_sys (int dx, int dy, const QRect &r)
 
void deactivateWidgetCleanup ()
 
void setGeometry_sys (int, int, int, int, bool)
 
void fixPosIncludesFrame ()
 
void sendPendingMoveAndResizeEvents (bool recursive=false, bool disableUpdates=false)
 
void activateChildLayoutsRecursively ()
 
void show_recursive ()
 
void show_helper ()
 
void show_sys ()
 
void hide_sys ()
 
void hide_helper ()
 
bool isExplicitlyHidden () const
 
void _q_showIfNotHidden ()
 
void setVisible (bool)
 
void setEnabled_helper (bool)
 
void updateFrameStrut ()
 
QRect frameStrut () const
 
void setWindowIconText_sys (const QString &cap)
 
void setWindowIconText_helper (const QString &cap)
 
void setWindowTitle_sys (const QString &cap)
 
void setWindowFilePath_sys (const QString &filePath)
 
void setCursor_sys (const QCursor &cursor)
 
void unsetCursor_sys ()
 
void setWindowTitle_helper (const QString &cap)
 
void setWindowFilePath_helper (const QString &filePath)
 
void setWindowModified_helper ()
 
virtual void setWindowFlags (Qt::WindowFlags windowFlags)
 
bool setMinimumSize_helper (int &minw, int &minh)
 
bool setMaximumSize_helper (int &maxw, int &maxh)
 
void setConstraints_sys ()
 
bool pointInsideRectAndMask (const QPoint &) const
 
QWidgetchildAt_helper (const QPoint &, bool) const
 
QWidgetchildAtRecursiveHelper (const QPoint &p, bool) const
 
void updateGeometry_helper (bool forceUpdate)
 
void getLayoutItemMargins (int *left, int *top, int *right, int *bottom) const
 
void setLayoutItemMargins (int left, int top, int right, int bottom)
 
void setLayoutItemMargins (QStyle::SubElement element, const QStyleOption *opt=nullptr)
 
void updateContentsRect ()
 
QMargins safeAreaMargins () const
 
virtual void aboutToDestroy ()
 
QWidgeteffectiveFocusWidget ()
 
void setModal_sys ()
 
void setRedirected (QPaintDevice *replacement, const QPoint &offset)
 
QPaintDeviceredirected (QPoint *offset) const
 
void restoreRedirected ()
 
void enforceNativeChildren ()
 
bool nativeChildrenForced () const
 
QRect effectiveRectFor (const QRegion &region) const
 
QRect effectiveRectFor (const QRect &rect) const
 
QSize adjustedSize () const
 
void handleSoftwareInputPanel (Qt::MouseButton button, bool clickCausedFocus)
 
void handleSoftwareInputPanel (bool clickCausedFocus=false)
 
void setWSGeometry ()
 
QPoint mapToWS (const QPoint &p) const
 
QPoint mapFromWS (const QPoint &p) const
 
QRect mapToWS (const QRect &r) const
 
QRect mapFromWS (const QRect &r) const
 
virtual QObjectfocusObject ()
 
virtual QPlatformBackingStoreRhiConfig rhiConfig () const
 
virtual TextureData texture () const
 
virtual QPlatformTextureList::Flags textureListFlags ()
 
virtual QImage grabFramebuffer ()
 
virtual void beginBackingStorePainting ()
 
virtual void endBackingStorePainting ()
 
virtual void beginCompose ()
 
virtual void endCompose ()
 
void setRenderToTexture ()
 
void setTextureChildSeen ()
 
virtual void initializeViewportFramebuffer ()
 
virtual void resizeViewportFramebuffer ()
 
virtual void resolveSamples ()
 
virtual bool isStereoEnabled ()
 
virtual bool toggleStereoTargetBuffer ()
 
std::string flagsForDumping () const override
 
QWidgetclosestParentWidgetWithWindowHandle () const
 
QWidgetnextPrevElementInFocusChain (FocusDirection direction) const
 
bool removeFromFocusChain (FocusChainRemovalRules rules=FocusChainRemovalRules(), FocusDirection direction=FocusDirection::Next)
 
bool insertIntoFocusChain (FocusDirection direction, QWidget *position)
 
bool insertIntoFocusChainBefore (QWidget *position)
 
bool insertIntoFocusChainAfter (QWidget *position)
 
void reparentFocusChildren (FocusDirection direction)
 
QWidgetdetermineLastFocusChild (QWidget *noFurtherThan)
 
void initFocusChain ()
 
bool isInFocusChain () const
 
bool isFocusChainConsistent () const
 
void setNetWmWindowTypes (bool skipIfMissing=false)
 
bool stealKeyboardGrab (bool grab)
 
bool stealMouseGrab (bool grab)
 
bool hasChildWithFocusPolicy (Qt::FocusPolicy policy, const QWidget *excludeChildrenOf=nullptr) const
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Public Attributes

QPrintDialogprintDialog
 
QPageSetupDialogpageSetupDialog
 
QPrintPreviewWidgetpreview
 
QPrinterprinter
 
bool ownPrinter
 
bool initialized
 
QLineEditpageNumEdit
 
QLabelpageNumLabel
 
QComboBoxzoomFactor
 
QActionGroupnavGroup
 
QActionnextPageAction
 
QActionprevPageAction
 
QActionfirstPageAction
 
QActionlastPageAction
 
QActionGroupfitGroup
 
QActionfitWidthAction
 
QActionfitPageAction
 
QActionGroupzoomGroup
 
QActionzoomInAction
 
QActionzoomOutAction
 
QActionGrouporientationGroup
 
QActionportraitAction
 
QActionlandscapeAction
 
QActionGroupmodeGroup
 
QActionsingleModeAction
 
QActionfacingModeAction
 
QActionoverviewModeAction
 
QActionGroupprinterGroup
 
QActionprintAction
 
QActionpageSetupAction
 
QPointer< QObjectreceiverToDisconnectOnClose
 
QByteArray memberToDisconnectOnClose
 
- Public Attributes inherited from QDialogPrivate
Qt::Orientation orientation
 
QWidgetextension
 
bool doShowExtension
 
QSize size
 
QSize min
 
QSize max
 
QPoint lastRMBPress
 
int rescode
 
int resetModalityTo
 
bool wasModalitySet
 
QPointer< QEventLoopeventLoop
 
bool nativeDialogInUse
 
- Public Attributes inherited from QWidgetPrivate
std::unique_ptr< QWExtraextra
 
QWidgetfocus_next
 
QWidgetfocus_prev
 
QWidgetfocus_child
 
QLayoutlayout
 
QRegionneedsFlush
 
QPaintDeviceredirectDev
 
QWidgetItemV2widgetItem
 
QPaintEngineextraPaintEngine
 
const QMetaObjectpolished
 
QGraphicsEffectgraphicsEffect
 
Qt::InputMethodHints imHints
 
QRegion opaqueChildren
 
QRegion dirty
 
uint directFontResolveMask
 
uint inheritedFontResolveMask
 
decltype(std::declval< QPalette >().resolveMask()) directPaletteResolveMask
 
QPalette::ResolveMask inheritedPaletteResolveMask
 
short leftmargin
 
short topmargin
 
short rightmargin
 
short bottommargin
 
signed char leftLayoutItemMargin
 
signed char topLayoutItemMargin
 
signed char rightLayoutItemMargin
 
signed char bottomLayoutItemMargin
 
Qt::HANDLE hd
 
QWidgetData data
 
QSizePolicy size_policy
 
QLocale locale
 
QPoint redirectOffset
 
QList< QAction * > actions
 
QMap< Qt::GestureType, Qt::GestureFlags > gestureContext
 
uint high_attributes [4]
 
QPalette::ColorRole fg_role: 8
 
QPalette::ColorRole bg_role: 8
 
uint dirtyOpaqueChildren: 1
 
uint isOpaque: 1
 
uint retainSizeWhenHiddenChanged: 1
 
uint inDirtyList: 1
 
uint isScrolled: 1
 
uint isMoved: 1
 
uint usesDoubleBufferedGLContext: 1
 
uint mustHaveWindowHandle: 1
 
uint renderToTexture: 1
 
uint textureChildSeen: 1
 
uint inheritsInputMethodHints: 1
 
uint renderToTextureReallyDirty: 1
 
uint usesRhiFlush: 1
 
uint childrenHiddenByWState: 1
 
uint childrenShownByExpose: 1
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Additional Inherited Members

- Public Types inherited from QWidgetPrivate
enum  DrawWidgetFlag {
  DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 ,
  DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 ,
  UseEffectRegionBounds = 0x100
}
 
enum  Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 }
 
enum class  WindowHandleMode { Direct , Closest , TopLevel }
 
enum  CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent }
 
enum class  FocusDirection { Previous , Next }
 
enum class  FocusChainRemovalRule { EnsureFocusOut = 0x01 , AssertConsistency = 0x02 }
 
- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QWidgetPrivate
static QWidgetPrivateget (QWidget *w)
 
static const QWidgetPrivateget (const QWidget *w)
 
static void checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight)
 
static void adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr)
 
static QWidgetparentGraphicsView (const QWidget *widget)
 
static QRect screenGeometry (const QWidget *widget)
 
static QRect availableScreenGeometry (const QWidget *widget)
 
static QScreenscreen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static QRect availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true)
 
static void sendComposeStatus (QWidget *w, bool end)
 
static void setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent)
 
static bool insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position)
 
static QWidgetList takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next)
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 
- Static Public Attributes inherited from QWidgetPrivate
static QWidgetMappermapper = nullptr
 
static QWidgetSetallWidgets = nullptr
 
static int instanceCounter = 0
 
static int maxInstances = 0
 
- Protected Member Functions inherited from QDialogPrivate
virtual int dialogCode () const
 

Detailed Description

Definition at line 119 of file qprintpreviewdialog.cpp.

Constructor & Destructor Documentation

◆ QPrintPreviewDialogPrivate()

QPrintPreviewDialogPrivate::QPrintPreviewDialogPrivate ( )
inline

Definition at line 123 of file qprintpreviewdialog.cpp.

Member Function Documentation

◆ _q_fit()

void QPrintPreviewDialogPrivate::_q_fit ( QAction * action)

Definition at line 470 of file qprintpreviewdialog.cpp.

References QPrintPreviewWidget::fitInView(), fitPageAction, QPrintPreviewWidget::fitToWidth(), preview, and setFitting().

Referenced by setupActions().

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

◆ _q_navigate()

void QPrintPreviewDialogPrivate::_q_navigate ( QAction * action)

Definition at line 501 of file qprintpreviewdialog.cpp.

References QPrintPreviewWidget::currentPage(), firstPageAction, lastPageAction, nextPageAction, QPrintPreviewWidget::pageCount(), preview, prevPageAction, QPrintPreviewWidget::setCurrentPage(), and updateNavActions().

Referenced by setupActions().

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

◆ _q_pageNumEdited()

void QPrintPreviewDialogPrivate::_q_pageNumEdited ( )

Definition at line 493 of file qprintpreviewdialog.cpp.

References ok, pageNumEdit, preview, QPrintPreviewWidget::setCurrentPage(), QLineEdit::text, and QString::toInt().

Referenced by init().

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

◆ _q_pageSetup()

void QPrintPreviewDialogPrivate::_q_pageSetup ( )

Definition at line 570 of file qprintpreviewdialog.cpp.

References QDialog::Accepted, QPageSetupDialog::exec(), landscapeAction, QPrintPreviewWidget::orientation(), pageSetupDialog, QPageLayout::Portrait, portraitAction, preview, printer, QAction::setChecked(), QPrintPreviewWidget::setLandscapeOrientation(), and QPrintPreviewWidget::setPortraitOrientation().

Referenced by setupActions().

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

◆ _q_previewChanged()

void QPrintPreviewDialogPrivate::_q_previewChanged ( )

Definition at line 589 of file qprintpreviewdialog.cpp.

References updateNavActions(), updatePageNumLabel(), and updateZoomFactor().

Referenced by init().

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

◆ _q_print()

void QPrintPreviewDialogPrivate::_q_print ( )

Definition at line 538 of file qprintpreviewdialog.cpp.

References QDialog::Accepted, QPrintDialog::exec(), fileName, QFileDialog::getSaveFileName(), QString::isEmpty(), QPrinter::NativeFormat, QPrinter::outputFileName(), QPrinter::outputFormat(), preview, QPrintPreviewWidget::print(), printDialog, printer, QPrinter::setOutputFileName(), title, and QCoreApplication::translate().

Referenced by setupActions().

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

◆ _q_setMode()

void QPrintPreviewDialogPrivate::_q_setMode ( QAction * action)

Definition at line 515 of file qprintpreviewdialog.cpp.

References QPrintPreviewWidget::AllPagesView, facingModeAction, QPrintPreviewWidget::FacingPagesView, fitGroup, navGroup, overviewModeAction, pageNumEdit, pageNumLabel, preview, QActionGroup::setEnabled(), QWidget::setEnabled(), setFitting(), QPrintPreviewWidget::setViewMode(), singleModeAction, and QPrintPreviewWidget::SinglePageView.

Referenced by setupActions().

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

◆ _q_zoomFactorChanged()

void QPrintPreviewDialogPrivate::_q_zoomFactorChanged ( )

Definition at line 596 of file qprintpreviewdialog.cpp.

References arg, QString::fromLatin1(), QComboBox::lineEdit(), ok, preview, qMax(), qMin(), QString::remove(), QComboBox::setEditText(), setFitting(), QPrintPreviewWidget::setZoomFactor(), text, QLineEdit::text, QString::toFloat(), and zoomFactor.

Referenced by init().

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

◆ _q_zoomIn()

void QPrintPreviewDialogPrivate::_q_zoomIn ( )

Definition at line 479 of file qprintpreviewdialog.cpp.

References preview, setFitting(), updateZoomFactor(), and QPrintPreviewWidget::zoomIn().

Referenced by init().

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

◆ _q_zoomOut()

void QPrintPreviewDialogPrivate::_q_zoomOut ( )

Definition at line 486 of file qprintpreviewdialog.cpp.

References preview, setFitting(), updateZoomFactor(), and QPrintPreviewWidget::zoomOut().

Referenced by init().

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

◆ init()

void QPrintPreviewDialogPrivate::init ( QPrinter * printer = nullptr)

Definition at line 193 of file qprintpreviewdialog.cpp.

References _q_pageNumEdited(), _q_ppd_initResources(), _q_previewChanged(), _q_zoomFactorChanged(), _q_zoomIn(), _q_zoomOut(), QToolBar::addAction(), QComboBox::addItem(), QToolBar::addSeparator(), QBoxLayout::addWidget(), QToolBar::addWidget(), Qt::AlignRight, Qt::AlignVCenter, QFormLayout::AllNonFixedFieldsGrow, QObject::connect(), QPrinter::docName(), facingModeAction, QFormLayout::FieldRole, firstPageAction, fitPageAction, fitWidthAction, QSizePolicy::Fixed, formLayout, QString::isEmpty(), QPrinter::isValid(), QFormLayout::LabelRole, landscapeAction, lastPageAction, QComboBox::lineEdit(), QLabel::minimumSizeHint(), QLineEdit::minimumSizeHint(), QPrinter::NativeFormat, nextPageAction, QComboBox::NoInsert, QPrinter::outputFormat(), overviewModeAction, ownPrinter, pageNumEdit, pageNumLabel, pageSetupAction, portraitAction, preview, prevPageAction, printAction, printer, QWidget::resize(), QLineEdit::setAlignment(), QAbstractButton::setAutoRepeat(), QLayout::setContentsMargins(), QComboBox::setEditable(), QAction::setEnabled(), QFormLayout::setFieldGrowthPolicy(), QWidget::setFocus(), QComboBox::setInsertPolicy(), QComboBox::setLineEdit(), QComboBox::setMinimumContentsLength(), QWidget::setSizePolicy(), setupActions(), QFormLayout::setWidget(), SIGNAL, singleModeAction, SLOT, QCoreApplication::translate(), Qt::Widget, QToolBar::widgetForAction(), zoomFactor, zoomInAction, and zoomOutAction.

+ Here is the call graph for this function:

◆ isFitting()

bool QPrintPreviewDialogPrivate::isFitting ( )

Definition at line 413 of file qprintpreviewdialog.cpp.

References fitGroup, fitPageAction, fitWidthAction, QAction::isChecked(), and QActionGroup::isExclusive().

Referenced by setFitting().

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

◆ layoutPages()

void QPrintPreviewDialogPrivate::layoutPages ( )

◆ populateScene()

void QPrintPreviewDialogPrivate::populateScene ( )

◆ setFitting()

void QPrintPreviewDialogPrivate::setFitting ( bool on)

Definition at line 420 of file qprintpreviewdialog.cpp.

References QActionGroup::addAction(), QActionGroup::checkedAction(), fitGroup, fitPageAction, fitWidthAction, QAction::isChecked(), isFitting(), QActionGroup::removeAction(), QAction::setChecked(), and QActionGroup::setExclusive().

Referenced by _q_fit(), _q_setMode(), _q_zoomFactorChanged(), _q_zoomIn(), and _q_zoomOut().

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

◆ setupActions()

void QPrintPreviewDialogPrivate::setupActions ( )

Definition at line 330 of file qprintpreviewdialog.cpp.

References _q_fit(), _q_navigate(), _q_pageSetup(), _q_print(), _q_setMode(), QActionGroup::addAction(), QObject::connect(), facingModeAction, firstPageAction, fitGroup, fitPageAction, fitWidthAction, landscapeAction, lastPageAction, modeGroup, navGroup, nextPageAction, QPrintPreviewWidget::orientation(), orientationGroup, overviewModeAction, pageSetupAction, QPageLayout::Portrait, portraitAction, preview, prevPageAction, printAction, printerGroup, qt_setupActionIcon(), QAction::setCheckable(), QAction::setChecked(), QActionGroup::setExclusive(), QObject::setObjectName(), SIGNAL, singleModeAction, SLOT, QCoreApplication::translate(), zoomGroup, zoomInAction, and zoomOutAction.

Referenced by init().

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

◆ updateNavActions()

void QPrintPreviewDialogPrivate::updateNavActions ( )

Definition at line 439 of file qprintpreviewdialog.cpp.

References QPrintPreviewWidget::currentPage(), firstPageAction, lastPageAction, nextPageAction, QString::number(), QPrintPreviewWidget::pageCount(), pageNumEdit, preview, prevPageAction, QAction::setEnabled(), and QLineEdit::setText().

Referenced by _q_navigate(), and _q_previewChanged().

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

◆ updatePageNumLabel()

void QPrintPreviewDialogPrivate::updatePageNumLabel ( )

Definition at line 450 of file qprintpreviewdialog.cpp.

References arg, fill(), QString::fromLatin1(), QLineEdit::minimumSizeHint(), QString::number(), QPrintPreviewWidget::pageCount(), pageNumEdit, pageNumLabel, preview, QWidget::setMaximumWidth(), QWidget::setMinimumWidth(), QLabel::setText(), QLineEdit::setValidator(), and QSize::width().

Referenced by _q_previewChanged().

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

◆ updateZoomFactor()

void QPrintPreviewDialogPrivate::updateZoomFactor ( )

Definition at line 465 of file qprintpreviewdialog.cpp.

References QString::asprintf(), QComboBox::lineEdit(), preview, QLineEdit::setText(), zoomFactor, and QPrintPreviewWidget::zoomFactor().

Referenced by _q_previewChanged(), _q_zoomIn(), and _q_zoomOut().

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

Member Data Documentation

◆ facingModeAction

QAction* QPrintPreviewDialogPrivate::facingModeAction

Definition at line 182 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), init(), and setupActions().

◆ firstPageAction

QAction* QPrintPreviewDialogPrivate::firstPageAction

Definition at line 165 of file qprintpreviewdialog.cpp.

Referenced by _q_navigate(), init(), setupActions(), and updateNavActions().

◆ fitGroup

QActionGroup* QPrintPreviewDialogPrivate::fitGroup

Definition at line 168 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), isFitting(), setFitting(), and setupActions().

◆ fitPageAction

QAction* QPrintPreviewDialogPrivate::fitPageAction

Definition at line 170 of file qprintpreviewdialog.cpp.

Referenced by _q_fit(), init(), isFitting(), setFitting(), and setupActions().

◆ fitWidthAction

QAction* QPrintPreviewDialogPrivate::fitWidthAction

Definition at line 169 of file qprintpreviewdialog.cpp.

Referenced by init(), isFitting(), setFitting(), and setupActions().

◆ initialized

bool QPrintPreviewDialogPrivate::initialized

Definition at line 154 of file qprintpreviewdialog.cpp.

◆ landscapeAction

QAction* QPrintPreviewDialogPrivate::landscapeAction

Definition at line 178 of file qprintpreviewdialog.cpp.

Referenced by _q_pageSetup(), init(), and setupActions().

◆ lastPageAction

QAction* QPrintPreviewDialogPrivate::lastPageAction

Definition at line 166 of file qprintpreviewdialog.cpp.

Referenced by _q_navigate(), init(), setupActions(), and updateNavActions().

◆ memberToDisconnectOnClose

QByteArray QPrintPreviewDialogPrivate::memberToDisconnectOnClose

Definition at line 190 of file qprintpreviewdialog.cpp.

◆ modeGroup

QActionGroup* QPrintPreviewDialogPrivate::modeGroup

Definition at line 180 of file qprintpreviewdialog.cpp.

Referenced by setupActions().

◆ navGroup

QActionGroup* QPrintPreviewDialogPrivate::navGroup

Definition at line 162 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), and setupActions().

◆ nextPageAction

QAction* QPrintPreviewDialogPrivate::nextPageAction

Definition at line 163 of file qprintpreviewdialog.cpp.

Referenced by _q_navigate(), init(), setupActions(), and updateNavActions().

◆ orientationGroup

QActionGroup* QPrintPreviewDialogPrivate::orientationGroup

Definition at line 176 of file qprintpreviewdialog.cpp.

Referenced by setupActions().

◆ overviewModeAction

QAction* QPrintPreviewDialogPrivate::overviewModeAction

Definition at line 183 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), init(), and setupActions().

◆ ownPrinter

bool QPrintPreviewDialogPrivate::ownPrinter

Definition at line 153 of file qprintpreviewdialog.cpp.

Referenced by init().

◆ pageNumEdit

QLineEdit* QPrintPreviewDialogPrivate::pageNumEdit

◆ pageNumLabel

QLabel* QPrintPreviewDialogPrivate::pageNumLabel

Definition at line 158 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), init(), and updatePageNumLabel().

◆ pageSetupAction

QAction* QPrintPreviewDialogPrivate::pageSetupAction

Definition at line 187 of file qprintpreviewdialog.cpp.

Referenced by init(), and setupActions().

◆ pageSetupDialog

QPageSetupDialog* QPrintPreviewDialogPrivate::pageSetupDialog

Definition at line 150 of file qprintpreviewdialog.cpp.

Referenced by _q_pageSetup().

◆ portraitAction

QAction* QPrintPreviewDialogPrivate::portraitAction

Definition at line 177 of file qprintpreviewdialog.cpp.

Referenced by _q_pageSetup(), init(), and setupActions().

◆ preview

◆ prevPageAction

QAction* QPrintPreviewDialogPrivate::prevPageAction

Definition at line 164 of file qprintpreviewdialog.cpp.

Referenced by _q_navigate(), init(), setupActions(), and updateNavActions().

◆ printAction

QAction* QPrintPreviewDialogPrivate::printAction

Definition at line 186 of file qprintpreviewdialog.cpp.

Referenced by init(), and setupActions().

◆ printDialog

QPrintDialog* QPrintPreviewDialogPrivate::printDialog

Definition at line 149 of file qprintpreviewdialog.cpp.

Referenced by _q_print().

◆ printer

QPrinter* QPrintPreviewDialogPrivate::printer

Definition at line 152 of file qprintpreviewdialog.cpp.

Referenced by _q_pageSetup(), _q_print(), and init().

◆ printerGroup

QActionGroup* QPrintPreviewDialogPrivate::printerGroup

Definition at line 185 of file qprintpreviewdialog.cpp.

Referenced by setupActions().

◆ receiverToDisconnectOnClose

QPointer<QObject> QPrintPreviewDialogPrivate::receiverToDisconnectOnClose

Definition at line 189 of file qprintpreviewdialog.cpp.

◆ singleModeAction

QAction* QPrintPreviewDialogPrivate::singleModeAction

Definition at line 181 of file qprintpreviewdialog.cpp.

Referenced by _q_setMode(), init(), and setupActions().

◆ zoomFactor

QComboBox* QPrintPreviewDialogPrivate::zoomFactor

Definition at line 159 of file qprintpreviewdialog.cpp.

Referenced by _q_zoomFactorChanged(), init(), and updateZoomFactor().

◆ zoomGroup

QActionGroup* QPrintPreviewDialogPrivate::zoomGroup

Definition at line 172 of file qprintpreviewdialog.cpp.

Referenced by setupActions().

◆ zoomInAction

QAction* QPrintPreviewDialogPrivate::zoomInAction

Definition at line 173 of file qprintpreviewdialog.cpp.

Referenced by init(), and setupActions().

◆ zoomOutAction

QAction* QPrintPreviewDialogPrivate::zoomOutAction

Definition at line 174 of file qprintpreviewdialog.cpp.

Referenced by init(), and setupActions().


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