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

Public Types

enum  Direction { Backward, Forward }
 
typedef QMap< int, QWizardPage * > PageMap
 
- 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 **)
 

Public Functions

void _q_emitCustomButtonClicked ()
 
void _q_handleFieldObjectDestroyed (QObject *)
 
void _q_updateButtonStates ()
 
void addField (const QWizardField &field)
 
bool buttonLayoutContains (QWizard::WizardButton which)
 
void cleanupPagesNotInHistory ()
 
void connectButton (QWizard::WizardButton which) const
 
void disableUpdates ()
 
void enableUpdates ()
 
bool ensureButton (QWizard::WizardButton which) const
 
void handleAeroStyleChange ()
 
void init ()
 
bool isVistaThemeEnabled (QVistaHelper::VistaState state) const
 
bool isVistaThemeEnabled () const
 
QWizardLayoutInfo layoutInfoForCurrentPage ()
 
 QWizardPrivate ()
 
void recreateLayout (const QWizardLayoutInfo &info)
 
void removeFieldAt (int index)
 
void reset ()
 
void setButtonLayout (const QWizard::WizardButton *array, int size)
 
void setStyle (QStyle *style)
 
void switchToPage (int newId, Direction direction)
 
void updateButtonLayout ()
 
void updateButtonTexts ()
 
void updateCurrentPage ()
 
void updateLayout ()
 
void updateMinMaxSizes (const QWizardLayoutInfo &info)
 
void updatePixmap (QWizard::WizardPixmap which)
 
bool vistaDisabled () const
 
- 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
 

Static Public Functions

static QPixmap findDefaultBackgroundPixmap ()
 
- 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)
 

Public Variables

union {
   struct {
      QAbstractButton *   back
 
      QAbstractButton *   cancel
 
      QAbstractButton *   commit
 
      QAbstractButton *   finish
 
      QAbstractButton *   help
 
      QAbstractButton *   next
 
   }   btn
 
   QAbstractButton *   btns [QWizard::NButtons]
 
}; 
 
QWizardAntiFlickerWidgetantiFlickerWidget
 
QWizardRulerbottomRuler
 
QMap< int, QStringbuttonCustomTexts
 
QHBoxLayoutbuttonLayout
 
QList< QWizard::WizardButtonbuttonsCustomLayout
 
bool buttonsHaveCustomLayout
 
bool canContinue
 
bool canFinish
 
int current
 
QPixmap defaultPixmaps [QWizard::NPixmaps]
 
QVector< QWizardDefaultPropertydefaultPropertyTable
 
int disableUpdatesCount
 
QMap< QString, int > fieldIndexMap
 
QVector< QWizardFieldfields
 
QWizardHeaderheaderWidget
 
QList< int > history
 
bool inHandleAeroStyleChange
 
QSet< int > initialized
 
QWizardLayoutInfo layoutInfo
 
QGridLayoutmainLayout
 
int maximumHeight
 
int maximumWidth
 
int minimumHeight
 
int minimumWidth
 
QWizard::WizardOptions opts
 
QFramepageFrame
 
PageMap pageMap
 
QVBoxLayoutpageVBoxLayout
 
QWidgetplaceholderWidget1
 
QWidgetplaceholderWidget2
 
QWidgetsideWidget
 
int start
 
bool startSetByUser
 
Qt::TextFormat subTitleFmt
 
QLabelsubTitleLabel
 
Qt::TextFormat titleFmt
 
QLabeltitleLabel
 
QVistaHelpervistaHelper
 
bool vistaInitPending
 
QVistaHelper::VistaState vistaState
 
bool vistaStateChanged
 
QWatermarkLabelwatermarkLabel
 
QWizard::WizardStyle wizStyle
 
- 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

- 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 526 of file qwizard.cpp.

Typedefs

◆ PageMap

Definition at line 531 of file qwizard.cpp.

Enumerations

◆ Direction

Enumerator
Backward 
Forward 

Definition at line 533 of file qwizard.cpp.

Constructors and Destructors

◆ QWizardPrivate()

QWizardPrivate::QWizardPrivate ( )
inline

Definition at line 538 of file qwizard.cpp.

539  : start(-1)
540  , startSetByUser(false)
541  , current(-1)
542  , canContinue(false)
543  , canFinish(false)
545  , opts(0)
546  , buttonsHaveCustomLayout(false)
549  , placeholderWidget1(0)
550  , placeholderWidget2(0)
551  , headerWidget(0)
552  , watermarkLabel(0)
553  , sideWidget(0)
554  , titleLabel(0)
555  , subTitleLabel(0)
556  , bottomRuler(0)
557 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
558  , vistaInitPending(false)
560  , vistaStateChanged(false)
561  , inHandleAeroStyleChange(false)
562 #endif
563  , minimumWidth(0)
564  , minimumHeight(0)
567  {
568  for (int i = 0; i < QWizard::NButtons; ++i) {
569  btns[i] = 0;
570 #ifdef QT_SOFTKEYS_ENABLED
571  softKeys[i] = 0;
572 #endif
573  }
574 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
576  vistaInitPending = true;
577 #endif
578  }
QLabel * subTitleLabel
Definition: qwizard.cpp:657
bool vistaInitPending
Definition: qwizard.cpp:669
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
int disableUpdatesCount
Definition: qwizard.cpp:626
Qt::TextFormat subTitleFmt
Definition: qwizard.cpp:634
#define QWIDGETSIZE_MAX
Defines the maximum size for a QWidget object.
Definition: qwidget.h:1087
QWidget * sideWidget
Definition: qwizard.cpp:654
QWidget * placeholderWidget1
Definition: qwizard.cpp:650
static const WinVersion WindowsVersion
the version of the Windows operating system on which the application is run (Windows only) ...
Definition: qglobal.h:1613
QWizardRuler * bottomRuler
Definition: qwizard.cpp:658
bool buttonsHaveCustomLayout
Definition: qwizard.cpp:631
bool startSetByUser
Definition: qwizard.cpp:621
QWatermarkLabel * watermarkLabel
Definition: qwizard.cpp:653
bool vistaStateChanged
Definition: qwizard.cpp:671
QVistaHelper::VistaState vistaState
Definition: qwizard.cpp:670
bool inHandleAeroStyleChange
Definition: qwizard.cpp:672
QLabel * titleLabel
Definition: qwizard.cpp:656
QWizard::WizardOptions opts
Definition: qwizard.cpp:629
bool canContinue
Definition: qwizard.cpp:623
QWizardHeader * headerWidget
Definition: qwizard.cpp:652
Qt::TextFormat titleFmt
Definition: qwizard.cpp:633
QWidget * placeholderWidget2
Definition: qwizard.cpp:651

Functions

◆ _q_emitCustomButtonClicked()

void QWizardPrivate::_q_emitCustomButtonClicked ( )

Definition at line 1647 of file qwizard.cpp.

1648 {
1649  Q_Q(QWizard);
1650  QObject *button = q->sender();
1651  for (int i = QWizard::NStandardButtons; i < QWizard::NButtons; ++i) {
1652  if (btns[i] == button) {
1653  emit q->customButtonClicked(QWizard::WizardButton(i));
1654  break;
1655  }
1656  }
1657 }
WizardButton
This enum specifies the buttons in a wizard.
Definition: qwizard.h:72
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
QObject * sender() const
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; othe...
Definition: qobject.cpp:2327
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ _q_handleFieldObjectDestroyed()

void QWizardPrivate::_q_handleFieldObjectDestroyed ( QObject object)

Definition at line 1719 of file qwizard.cpp.

1720 {
1721  int destroyed_index = -1;
1723  while (it != fields.end()) {
1724  const QWizardField &field = *it;
1725  if (field.object == object) {
1726  destroyed_index = fieldIndexMap.value(field.name, -1);
1727  fieldIndexMap.remove(field.name);
1728  it = fields.erase(it);
1729  } else {
1730  ++it;
1731  }
1732  }
1733  if (destroyed_index != -1) {
1735  while (it2 != fieldIndexMap.end()) {
1736  int index = it2.value();
1737  if (index > destroyed_index) {
1738  QString field_name = it2.key();
1739  fieldIndexMap.insert(field_name, index-1);
1740  }
1741  ++it2;
1742  }
1743  }
1744 }
const Key key(const T &value) const
Returns the first key with value value.
Definition: qmap.h:844
#define it(className, varName)
QVector< QWizardField > fields
Definition: qwizard.cpp:615
The QString class provides a Unicode character string.
Definition: qstring.h:83
The QVector class is a template class that provides a dynamic array.
Definition: qdatastream.h:64
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the vector...
Definition: qvector.h:250
const T value(const Key &key) const
Returns the value associated with the key key.
Definition: qmap.h:499
QString name
Definition: qwizard.cpp:175
QMap< QString, int > fieldIndexMap
Definition: qwizard.cpp:616
iterator begin()
Returns an STL-style iterator pointing to the first item in the map.
Definition: qmap.h:372
int remove(const Key &key)
Removes all the items that have the key key from the map.
Definition: qmap.h:662
QObject * object
Definition: qwizard.cpp:177
iterator begin()
Returns an STL-style iterator pointing to the first item in the vector.
Definition: qvector.h:247
iterator end()
Returns an STL-style iterator pointing to the imaginary item after the last item in the map...
Definition: qmap.h:375
iterator insert(const Key &key, const T &value)
Inserts a new item with the key key and a value of value.
Definition: qmap.h:559
iterator erase(iterator begin, iterator end)
Removes all the items from begin up to (but not including) end.
Definition: qvector.h:627
quint16 index
The QMap class is a template class that provides a skip-list-based dictionary.
Definition: qdatastream.h:67

◆ _q_updateButtonStates()

void QWizardPrivate::_q_updateButtonStates ( )

Definition at line 1659 of file qwizard.cpp.

1660 {
1661  Q_Q(QWizard);
1662 
1663  disableUpdates();
1664 
1665  const QWizardPage *page = q->currentPage();
1666  bool complete = page && page->isComplete();
1667 
1668  btn.back->setEnabled(history.count() > 1
1669  && !q->page(history.at(history.count() - 2))->isCommitPage()
1671  btn.next->setEnabled(canContinue && complete);
1672  btn.commit->setEnabled(canContinue && complete);
1673  btn.finish->setEnabled(canFinish && complete);
1674 
1675  const bool backButtonVisible = buttonLayoutContains(QWizard::BackButton)
1678  bool commitPage = page && page->isCommitPage();
1679  btn.back->setVisible(backButtonVisible);
1680  btn.next->setVisible(buttonLayoutContains(QWizard::NextButton) && !commitPage
1682  btn.commit->setVisible(buttonLayoutContains(QWizard::CommitButton) && commitPage
1683  && canContinue);
1684  btn.finish->setVisible(buttonLayoutContains(QWizard::FinishButton)
1686 
1687  bool useDefault = !(opts & QWizard::NoDefaultButton);
1688  if (QPushButton *nextPush = qobject_cast<QPushButton *>(btn.next))
1689  nextPush->setDefault(canContinue && useDefault && !commitPage);
1690  if (QPushButton *commitPush = qobject_cast<QPushButton *>(btn.commit))
1691  commitPush->setDefault(canContinue && useDefault && commitPage);
1692  if (QPushButton *finishPush = qobject_cast<QPushButton *>(btn.finish))
1693  finishPush->setDefault(!canContinue && useDefault);
1694 
1695 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
1696  if (isVistaThemeEnabled()) {
1697  vistaHelper->backButton()->setEnabled(btn.back->isEnabled());
1698  vistaHelper->backButton()->setVisible(backButtonVisible);
1699  btn.back->setVisible(false);
1700  }
1701 #endif
1702 
1703 #ifdef QT_SOFTKEYS_ENABLED
1704  QAbstractButton *wizardButton;
1705  for (int i = 0; i < QWizard::NButtons; ++i) {
1706  wizardButton = btns[i];
1707  if (wizardButton && !wizardButton->testAttribute(Qt::WA_WState_Hidden)) {
1708  wizardButton->hide();
1709  q->addAction(softKeys[i]);
1710  } else {
1711  q->removeAction(softKeys[i]);
1712  }
1713  }
1714 #endif
1715 
1716  enableUpdates();
1717 }
The QAbstractButton class is the abstract base class of button widgets, providing functionality commo...
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
The QWizardPage class is the base class for wizard pages.
Definition: qwizard.h:214
QList< int > history
Definition: qwizard.cpp:618
virtual bool isComplete() const
This virtual function is called by QWizard to determine whether the Next or Finish button should be e...
Definition: qwizard.cpp:3709
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
#define Q_Q(Class)
Definition: qglobal.h:2483
bool testAttribute(Qt::WidgetAttribute) const
Returns true if attribute attribute is set on this widget; otherwise returns false.
Definition: qwidget.h:1041
bool buttonLayoutContains(QWizard::WizardButton which)
Definition: qwizard.cpp:1537
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
void setEnabled(bool)
Definition: qwidget.cpp:3447
virtual void setVisible(bool visible)
Definition: qwidget.cpp:7991
void hide()
Hides the widget.
Definition: qwidget.h:501
bool isVistaThemeEnabled() const
Definition: qwizard.cpp:1619
QVistaBackButton * backButton() const
Definition: qwizard_win_p.h:96
QWizard::WizardOptions opts
Definition: qwizard.cpp:629
bool canContinue
Definition: qwizard.cpp:623
void disableUpdates()
Definition: qwizard.cpp:1629
QVistaHelper * vistaHelper
Definition: qwizard.cpp:668
void enableUpdates()
Definition: qwizard.cpp:1638
bool isCommitPage() const
Returns true if this page is a commit page; otherwise returns false.
Definition: qwizard.cpp:3817
struct QWizardPrivate::@156::@158 btn
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ addField()

void QWizardPrivate::addField ( const QWizardField field)

Definition at line 783 of file qwizard.cpp.

784 {
785  Q_Q(QWizard);
786 
787  QWizardField myField = field;
788  myField.resolve(defaultPropertyTable);
789 
790  if (fieldIndexMap.contains(myField.name)) {
791  qWarning("QWizardPage::addField: Duplicate field '%s'", qPrintable(myField.name));
792  return;
793  }
794 
795  fieldIndexMap.insert(myField.name, fields.count());
796  fields += myField;
797  if (myField.mandatory && !myField.changedSignal.isEmpty())
798  QObject::connect(myField.object, myField.changedSignal,
799  myField.page, SLOT(_q_maybeEmitCompleteChanged()));
801  myField.object, SIGNAL(destroyed(QObject*)), q,
803 }
QByteArray changedSignal
Definition: qwizard.cpp:179
int count(const T &t) const
Returns the number of occurrences of value in the vector.
Definition: qvector.h:742
QWizardPage * page
Definition: qwizard.cpp:174
#define SLOT(a)
Definition: qobjectdefs.h:226
void resolve(const QVector< QWizardDefaultProperty > &defaultPropertyTable)
Definition: qwizard.cpp:194
QVector< QWizardField > fields
Definition: qwizard.cpp:615
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
#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
Q_CORE_EXPORT void qWarning(const char *,...)
QString name
Definition: qwizard.cpp:175
QMap< QString, int > fieldIndexMap
Definition: qwizard.cpp:616
bool mandatory
Definition: qwizard.cpp:176
QObject * object
Definition: qwizard.cpp:177
iterator insert(const Key &key, const T &value)
Inserts a new item with the key key and a value of value.
Definition: qmap.h:559
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
Definition: qmap.h:553
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421
#define qPrintable(string)
Definition: qglobal.h:1750
void _q_handleFieldObjectDestroyed(QObject *)
Definition: qwizard.cpp:1719
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
QVector< QWizardDefaultProperty > defaultPropertyTable
Definition: qwizard.cpp:617

◆ buttonLayoutContains()

bool QWizardPrivate::buttonLayoutContains ( QWizard::WizardButton  which)

Definition at line 1537 of file qwizard.cpp.

1538 {
1540 }
QList< QWizard::WizardButton > buttonsCustomLayout
Definition: qwizard.cpp:632
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
Definition: qlist.h:880
bool buttonsHaveCustomLayout
Definition: qwizard.cpp:631

◆ cleanupPagesNotInHistory()

void QWizardPrivate::cleanupPagesNotInHistory ( )

Definition at line 767 of file qwizard.cpp.

768 {
769  Q_Q(QWizard);
770 
771  const QSet<int> original = initialized;
772  QSet<int>::const_iterator i = original.constBegin();
774 
775  for (; i != end; ++i) {
776  if (!history.contains(*i)) {
777  q->cleanupPage(*i);
778  initialized.remove(*i);
779  }
780  }
781 }
QList< int > history
Definition: qwizard.cpp:618
bool remove(const T &value)
Definition: qset.h:89
const_iterator constEnd() const
Definition: qset.h:171
#define Q_Q(Class)
Definition: qglobal.h:2483
QBool contains(const T &t) const
Returns true if the list contains an occurrence of value; otherwise returns false.
Definition: qlist.h:880
QSet< int > initialized
Definition: qwizard.cpp:619
const_iterator constBegin() const
Definition: qset.h:168
static const KeyPair *const end
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ connectButton()

void QWizardPrivate::connectButton ( QWizard::WizardButton  which) const

Definition at line 1431 of file qwizard.cpp.

1432 {
1433  Q_Q(const QWizard);
1434  if (which < QWizard::NStandardButtons) {
1435  QObject::connect(btns[which], SIGNAL(clicked()), q, buttonSlots[which]);
1436  } else {
1437  QObject::connect(btns[which], SIGNAL(clicked()), q, SLOT(_q_emitCustomButtonClicked()));
1438  }
1439 
1440 #ifdef QT_SOFTKEYS_ENABLED
1441  QObject::connect(softKeys[which], SIGNAL(triggered()), btns[which], SIGNAL(clicked()));
1442 #endif
1443 }
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
void _q_emitCustomButtonClicked()
Definition: qwizard.cpp:1647
#define SLOT(a)
Definition: qobjectdefs.h:226
#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
static const char *const buttonSlots[QWizard::NStandardButtons]
Definition: qwizard.cpp:895
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ disableUpdates()

void QWizardPrivate::disableUpdates ( )

Definition at line 1629 of file qwizard.cpp.

1630 {
1631  Q_Q(QWizard);
1632  if (disableUpdatesCount++ == 0) {
1633  q->setUpdatesEnabled(false);
1635  }
1636 }
int disableUpdatesCount
Definition: qwizard.cpp:626
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
#define Q_Q(Class)
Definition: qglobal.h:2483
void hide()
Hides the widget.
Definition: qwidget.h:501
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ enableUpdates()

void QWizardPrivate::enableUpdates ( )

Definition at line 1638 of file qwizard.cpp.

1639 {
1640  Q_Q(QWizard);
1641  if (--disableUpdatesCount == 0) {
1643  q->setUpdatesEnabled(true);
1644  }
1645 }
int disableUpdatesCount
Definition: qwizard.cpp:626
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
#define Q_Q(Class)
Definition: qglobal.h:2483
void show()
Shows the widget and its child widgets.
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ ensureButton()

bool QWizardPrivate::ensureButton ( QWizard::WizardButton  which) const

Definition at line 1380 of file qwizard.cpp.

1381 {
1382  Q_Q(const QWizard);
1383  if (uint(which) >= QWizard::NButtons)
1384  return false;
1385 
1386  if (!btns[which]) {
1387  QPushButton *pushButton = new QPushButton(antiFlickerWidget);
1388  QStyle *style = q->style();
1389  if (style != QApplication::style()) // Propagate style
1390  pushButton->setStyle(style);
1391  pushButton->setObjectName(object_name_for_button(which));
1392 #ifdef Q_WS_MAC
1393  pushButton->setAutoDefault(false);
1394 #endif
1395  pushButton->hide();
1396 #ifdef Q_CC_HPACC
1397  const_cast<QWizardPrivate *>(this)->btns[which] = pushButton;
1398 #else
1399  btns[which] = pushButton;
1400 #endif
1401  if (which < QWizard::NStandardButtons)
1402  pushButton->setText(buttonDefaultText(wizStyle, which, this));
1403 
1404 #ifdef QT_SOFTKEYS_ENABLED
1405  QAction *softKey = new QAction(pushButton->text(), pushButton);
1406  QAction::SoftKeyRole softKeyRole;
1407  switch(which) {
1408  case QWizard::NextButton:
1409  case QWizard::FinishButton:
1410  case QWizard::CancelButton:
1411  softKeyRole = QAction::NegativeSoftKey;
1412  break;
1413  case QWizard::BackButton:
1414  case QWizard::CommitButton:
1415  case QWizard::HelpButton:
1419  default:
1420  softKeyRole = QAction::PositiveSoftKey;
1421  break;
1422  }
1423  softKey->setSoftKeyRole(softKeyRole);
1424  softKeys[which] = softKey;
1425 #endif
1426  connectButton(which);
1427  }
1428  return true;
1429 }
QString text() const
void setText(const QString &text)
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
static QString buttonDefaultText(int wstyle, int which, const QWizardPrivate *wizardPrivate)
Definition: qwizard.cpp:680
The QPushButton widget provides a command button.
Definition: qpushbutton.h:57
static QStyle * style()
Returns the application&#39;s style object.
void connectButton(QWizard::WizardButton which) const
Definition: qwizard.cpp:1431
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
void setStyle(QStyle *)
Sets the widget&#39;s GUI style to style.
Definition: qwidget.cpp:2772
void setObjectName(const QString &name)
Definition: qobject.cpp:1112
#define Q_Q(Class)
Definition: qglobal.h:2483
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
void setSoftKeyRole(SoftKeyRole softKeyRole)
Definition: qaction.cpp:1599
unsigned int uint
Definition: qglobal.h:996
SoftKeyRole
This enum describes how an action should be placed in the softkey bar.
Definition: qaction.h:96
void hide()
Hides the widget.
Definition: qwidget.h:501
void setAutoDefault(bool)
static QString object_name_for_button(QWizard::WizardButton which)
Definition: qwizard.cpp:1353
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
Definition: qstyle.h:68
The QAction class provides an abstract user interface action that can be inserted into widgets...
Definition: qaction.h:64
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ findDefaultBackgroundPixmap()

QPixmap QWizardPrivate::findDefaultBackgroundPixmap ( )
static

Definition at line 1758 of file qwizard.cpp.

1759 {
1760  QCFType<CFURLRef> url;
1761  const int ExpectedImageWidth = 242;
1762  const int ExpectedImageHeight = 414;
1763  if (LSFindApplicationForInfo(kLSUnknownCreator, CFSTR("com.apple.KeyboardSetupAssistant"),
1764  0, 0, &url) == noErr) {
1765  QCFType<CFBundleRef> bundle = CFBundleCreate(kCFAllocatorDefault, url);
1766  if (bundle) {
1767  url = CFBundleCopyResourceURL(bundle, CFSTR("Background"), CFSTR("tif"), 0);
1768  if (url) {
1769  QCFType<CGImageSourceRef> imageSource = CGImageSourceCreateWithURL(url, 0);
1770  QCFType<CGImageRef> image = CGImageSourceCreateImageAtIndex(imageSource, 0, 0);
1771  if (image) {
1772  int width = CGImageGetWidth(image);
1773  int height = CGImageGetHeight(image);
1774  if (width == ExpectedImageWidth && height == ExpectedImageHeight)
1775  return QPixmap::fromMacCGImageRef(image);
1776  }
1777  }
1778  }
1779  }
1780  return QPixmap();
1781 
1782 }
static QPixmap fromMacCGImageRef(CGImageRef image)
Returns a QPixmap that is equivalent to the given image.
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71

◆ handleAeroStyleChange()

void QWizardPrivate::handleAeroStyleChange ( )

Definition at line 1570 of file qwizard.cpp.

1571 {
1572  Q_Q(QWizard);
1573 
1575  return; // prevent recursion
1576  inHandleAeroStyleChange = true;
1577 
1579  q->removeEventFilter(vistaHelper);
1580 
1581  if (isVistaThemeEnabled()) {
1584  q->installEventFilter(vistaHelper);
1585  q->setMouseTracking(true);
1588  0, vistaHelper->topOffset() // ### should ideally work without the '+ 1'
1590  } else {
1592  q->setMouseTracking(true);
1594  vistaHelper->backButton()->move(0, -1); // ### should ideally work with (0, 0)
1595  }
1599  vistaHelper->backButton()->show();
1600  } else {
1601  q->setMouseTracking(true); // ### original value possibly different
1602 #ifndef QT_NO_CURSOR
1603  q->unsetCursor(); // ### ditto
1604 #endif
1605  antiFlickerWidget->move(0, 0);
1608  }
1609 
1611 
1612  if (q->isVisible())
1614 
1615  inHandleAeroStyleChange = false;
1616 }
bool setDWMTitleBar(TitleBarChangeType type)
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
void disconnectBackButton()
static int topOffset()
static int topPadding()
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
#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
static int titleBarSize()
void show()
Shows the widget and its child widgets.
bool inHandleAeroStyleChange
Definition: qwizard.cpp:672
bool isVistaThemeEnabled() const
Definition: qwizard.cpp:1619
QVistaBackButton * backButton() const
Definition: qwizard_win_p.h:96
void hideBackButton()
Definition: qwizard_win_p.h:98
QVistaHelper * vistaHelper
Definition: qwizard.cpp:668
static const char *const buttonSlots[QWizard::NStandardButtons]
Definition: qwizard.cpp:895
void setWindowPosHack()
void setTitleBarIconAndCaptionVisible(bool visible)
void _q_updateButtonStates()
Definition: qwizard.cpp:1659
void move(int x, int y)
This corresponds to move(QPoint(x, y)).
Definition: qwidget.h:1011
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ init()

void QWizardPrivate::init ( )

Definition at line 708 of file qwizard.cpp.

709 {
710  Q_Q(QWizard);
711 
713  wizStyle = QWizard::WizardStyle(q->style()->styleHint(QStyle::SH_WizardStyle, 0, q));
714  if (wizStyle == QWizard::MacStyle) {
716  } else if (wizStyle == QWizard::ModernStyle) {
718  }
719 
720 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
721  vistaHelper = new QVistaHelper(q);
722 #endif
723 
724  // create these buttons right away; create the other buttons as necessary
729 
732 
737  pageVBoxLayout->addItem(spacerItem);
738 
742 
744 
745  for (int i = 0; i < NFallbackDefaultProperties; ++i)
749 }
QFrame * pageFrame
Definition: qwizard.cpp:655
const char * changedSignal
Definition: qwizard.cpp:139
const int NFallbackDefaultProperties
Definition: qwizard.cpp:134
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
const char * className
Definition: qwizard.cpp:137
void addItem(QLayoutItem *)
Reimplemented Function
Definition: qboxlayout.cpp:894
#define Q_Q(Class)
Definition: qglobal.h:2483
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
bool ensureButton(QWizard::WizardButton which) const
Definition: qwizard.cpp:1380
const struct @155 fallbackProperties[NFallbackDefaultProperties]
The QSpacerItem class provides blank space in a layout.
Definition: qlayoutitem.h:96
void append(const T &t)
Inserts value at the end of the vector.
Definition: qvector.h:573
QHBoxLayout * buttonLayout
Definition: qwizard.cpp:664
void addSpacing(int size)
Adds a non-stretchable space (a QSpacerItem) with size size to the end of this box layout...
QVBoxLayout * pageVBoxLayout
Definition: qwizard.cpp:663
void setSpacing(int spacing)
Reimplements QLayout::setSpacing().
Definition: qboxlayout.cpp:667
WizardStyle
This enum specifies the different looks supported by QWizard.
Definition: qwizard.h:97
The QGridLayout class lays out widgets in a grid.
Definition: qgridlayout.h:60
QWizard::WizardOptions opts
Definition: qwizard.cpp:629
const char * property
Definition: qwizard.cpp:138
QVistaHelper * vistaHelper
Definition: qwizard.cpp:668
The QHBoxLayout class lines up widgets horizontally.
Definition: qboxlayout.h:129
void setSizeConstraint(SizeConstraint)
Definition: qlayout.cpp:1435
QGridLayout * mainLayout
Definition: qwizard.cpp:665
The QVBoxLayout class lines up widgets vertically.
Definition: qboxlayout.h:149
void updateButtonLayout()
Definition: qwizard.cpp:1463
void setSizePolicy(QSizePolicy)
Definition: qwidget.cpp:10198
The QFrame class is the base class of widgets that can have a frame.
Definition: qframe.h:55
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
QVector< QWizardDefaultProperty > defaultPropertyTable
Definition: qwizard.cpp:617

◆ isVistaThemeEnabled() [1/2]

bool QWizardPrivate::isVistaThemeEnabled ( QVistaHelper::VistaState  state) const

Definition at line 1563 of file qwizard.cpp.

Referenced by buttonDefaultText().

1564 {
1565  return wizStyle == QWizard::AeroStyle
1566  && QVistaHelper::vistaState() == state
1567  && !vistaDisabled();
1568 }
static VistaState vistaState()
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
bool vistaDisabled() const
Definition: qwizard.cpp:1556

◆ isVistaThemeEnabled() [2/2]

bool QWizardPrivate::isVistaThemeEnabled ( ) const

Definition at line 1619 of file qwizard.cpp.

1620 {
1621 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
1624 #else
1625  return false;
1626 #endif
1627 }
bool isVistaThemeEnabled() const
Definition: qwizard.cpp:1619

◆ layoutInfoForCurrentPage()

QWizardLayoutInfo QWizardPrivate::layoutInfoForCurrentPage ( )

Definition at line 900 of file qwizard.cpp.

901 {
902  Q_Q(QWizard);
903  QStyle *style = q->style();
904 
906 
907  const int layoutHorizontalSpacing = style->pixelMetric(QStyle::PM_LayoutHorizontalSpacing);
916  info.hspacing = (layoutHorizontalSpacing == -1)
918  : layoutHorizontalSpacing;
920  info.buttonSpacing = (layoutHorizontalSpacing == -1)
922  : layoutHorizontalSpacing;
923 
925  info.buttonSpacing = 12;
926 
927  info.wizStyle = wizStyle;
928  if ((info.wizStyle == QWizard::AeroStyle)
929 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
931 #endif
932  )
934 
935  QString titleText;
936  QString subTitleText;
937  QPixmap backgroundPixmap;
938  QPixmap watermarkPixmap;
939 
940  if (QWizardPage *page = q->currentPage()) {
941  titleText = page->title();
942  subTitleText = page->subTitle();
943  backgroundPixmap = page->pixmap(QWizard::BackgroundPixmap);
944  watermarkPixmap = page->pixmap(QWizard::WatermarkPixmap);
945  }
946 
948  && !(opts & QWizard::IgnoreSubTitles) && !subTitleText.isEmpty();
949  info.sideWidget = sideWidget;
950  info.watermark = (info.wizStyle != QWizard::MacStyle) && (info.wizStyle != QWizard::AeroStyle)
951  && !watermarkPixmap.isNull();
952  info.title = !info.header && !titleText.isEmpty();
953  info.subTitle = !(opts & QWizard::IgnoreSubTitles) && !info.header && !subTitleText.isEmpty();
955 
956  return info;
957 }
static mach_timebase_info_data_t info
static VistaState vistaState()
The QWizardPage class is the base class for wizard pages.
Definition: qwizard.h:214
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0
Returns the value of the given pixel metric.
QWidget * sideWidget
Definition: qwizard.cpp:654
The QString class provides a Unicode character string.
Definition: qstring.h:83
int topLevelMarginBottom
Definition: qwizard.cpp:227
#define Q_Q(Class)
Definition: qglobal.h:2483
int layoutSpacing(QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const
Returns the spacing that should be used between control1 and control2 in a layout.
Definition: qstyle.cpp:2395
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
bool vistaDisabled() const
Definition: qwizard.cpp:1556
QLabel * titleLabel
Definition: qwizard.cpp:656
QWizard::WizardOptions opts
Definition: qwizard.cpp:629
The QStyle class is an abstract base class that encapsulates the look and feel of a GUI...
Definition: qstyle.h:68
#define QT_NO_STYLE_WINDOWSVISTA
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
Definition: qpixmap.cpp:615
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:235
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ recreateLayout()

void QWizardPrivate::recreateLayout ( const QWizardLayoutInfo info)

Definition at line 959 of file qwizard.cpp.

960 {
961  Q_Q(QWizard);
962 
963  /*
964  Start by undoing the main layout.
965  */
966  for (int i = mainLayout->count() - 1; i >= 0; --i) {
967  QLayoutItem *item = mainLayout->takeAt(i);
968  if (item->layout()) {
969  item->layout()->setParent(0);
970  } else {
971  delete item;
972  }
973  }
974  for (int i = mainLayout->columnCount() - 1; i >= 0; --i)
976  for (int i = mainLayout->rowCount() - 1; i >= 0; --i)
978 
979  /*
980  Now, recreate it.
981  */
982 
983  bool mac = (info.wizStyle == QWizard::MacStyle);
984  bool classic = (info.wizStyle == QWizard::ClassicStyle);
985  bool modern = (info.wizStyle == QWizard::ModernStyle);
986  bool aero = (info.wizStyle == QWizard::AeroStyle);
987  int deltaMarginLeft = info.topLevelMarginLeft - info.childMarginLeft;
988  int deltaMarginRight = info.topLevelMarginRight - info.childMarginRight;
989  int deltaMarginTop = info.topLevelMarginTop - info.childMarginTop;
990  int deltaMarginBottom = info.topLevelMarginBottom - info.childMarginBottom;
991  int deltaVSpacing = info.topLevelMarginBottom - info.vspacing;
992 
993  int row = 0;
994  int numColumns;
995  if (mac) {
996  numColumns = 3;
997  } else if (info.watermark || info.sideWidget) {
998  numColumns = 2;
999  } else {
1000  numColumns = 1;
1001  }
1002  int pageColumn = qMin(1, numColumns - 1);
1003 
1004  if (mac) {
1005  mainLayout->setMargin(0);
1006  mainLayout->setSpacing(0);
1009  } else {
1010  if (modern) {
1011  mainLayout->setMargin(0);
1012  mainLayout->setSpacing(0);
1013  pageVBoxLayout->setContentsMargins(deltaMarginLeft, deltaMarginTop,
1014  deltaMarginRight, deltaMarginBottom);
1017  } else {
1022  pageVBoxLayout->setContentsMargins(0, 0, 0, 0);
1023  buttonLayout->setContentsMargins(0, 0, 0, 0);
1024  }
1025  }
1027 
1028  if (info.header) {
1029  if (!headerWidget)
1032  mainLayout->addWidget(headerWidget, row++, 0, 1, numColumns);
1033  }
1034  if (headerWidget)
1036 
1037  int watermarkStartRow = row;
1038 
1039  if (mac)
1040  mainLayout->setRowMinimumHeight(row++, 10);
1041 
1042  if (info.title) {
1043  if (!titleLabel) {
1046  titleLabel->setWordWrap(true);
1047  }
1048 
1049  QFont titleFont = q->font();
1050  titleFont.setPointSize(titleFont.pointSize() + (mac ? 3 : 4));
1051  titleFont.setBold(true);
1053 
1054  if (aero) {
1055  // ### hardcoded for now:
1056  titleFont = QFont(QLatin1String("Segoe UI"), 12);
1057  QPalette pal(titleLabel->palette());
1058  pal.setColor(QPalette::Text, "#003399");
1059  titleLabel->setPalette(pal);
1060  }
1061 
1062  titleLabel->setFont(titleFont);
1063  const int aeroTitleIndent = 25; // ### hardcoded for now - should be calculated somehow
1064  if (aero)
1065  titleLabel->setIndent(aeroTitleIndent);
1066  else if (mac)
1067  titleLabel->setIndent(2);
1068  else if (classic)
1070  else
1072  if (modern) {
1073  if (!placeholderWidget1) {
1076  }
1078  mainLayout->addWidget(placeholderWidget1, row++, pageColumn);
1079  }
1080  mainLayout->addWidget(titleLabel, row++, pageColumn);
1081  if (modern) {
1082  if (!placeholderWidget2) {
1085  }
1087  mainLayout->addWidget(placeholderWidget2, row++, pageColumn);
1088  }
1089  if (mac)
1090  mainLayout->setRowMinimumHeight(row++, 7);
1091  }
1092  if (placeholderWidget1)
1093  placeholderWidget1->setVisible(info.title && modern);
1094  if (placeholderWidget2)
1095  placeholderWidget2->setVisible(info.title && modern);
1096 
1097  if (info.subTitle) {
1098  if (!subTitleLabel) {
1100  subTitleLabel->setWordWrap(true);
1101 
1103  info.childMarginRight , 0);
1104 
1106  }
1107  }
1108 
1109  // ### try to replace with margin.
1110  changeSpacerSize(pageVBoxLayout, 0, 0, info.subTitle ? info.childMarginLeft : 0);
1111 
1112  int hMargin = mac ? 1 : 0;
1113  int vMargin = hMargin;
1114 
1116  pageFrame->setLineWidth(0);
1117  pageFrame->setMidLineWidth(hMargin);
1118 
1119  if (info.header) {
1120  if (modern) {
1121  hMargin = info.topLevelMarginLeft;
1122  vMargin = deltaMarginBottom;
1123  } else if (classic) {
1124  hMargin = deltaMarginLeft + ClassicHMargin;
1125  vMargin = 0;
1126  }
1127  }
1128 
1129  if (aero) {
1130  int leftMargin = 18; // ### hardcoded for now - should be calculated somehow
1131  int topMargin = vMargin;
1132  int rightMargin = hMargin; // ### for now
1133  int bottomMargin = vMargin;
1134  pageFrame->setContentsMargins(leftMargin, topMargin, rightMargin, bottomMargin);
1135  } else {
1136  pageFrame->setContentsMargins(hMargin, vMargin, hMargin, vMargin);
1137  }
1138 
1139  if ((info.watermark || info.sideWidget) && !watermarkLabel) {
1145  }
1146 
1147  //bool wasSemiTransparent = pageFrame->testAttribute(Qt::WA_SetPalette);
1148  const bool wasSemiTransparent =
1150  || pageFrame->palette().brush(QPalette::Base).color().alpha() < 255;
1151  if (mac) {
1152  if (!wasSemiTransparent) {
1153  QPalette pal = pageFrame->palette();
1154  pal.setBrush(QPalette::Window, QColor(255, 255, 255, 153));
1155  // ### The next line is required to ensure visual semitransparency when
1156  // ### switching from ModernStyle to MacStyle. See TAG1 below.
1157  pal.setBrush(QPalette::Base, QColor(255, 255, 255, 153));
1158  pageFrame->setPalette(pal);
1161  }
1162  } else {
1163  if (wasSemiTransparent)
1165 
1166  bool baseBackground = (modern && !info.header); // ### TAG1
1168 
1169  if (titleLabel)
1170  titleLabel->setAutoFillBackground(baseBackground);
1171  pageFrame->setAutoFillBackground(baseBackground);
1172  if (watermarkLabel)
1173  watermarkLabel->setAutoFillBackground(baseBackground);
1174  if (placeholderWidget1)
1175  placeholderWidget1->setAutoFillBackground(baseBackground);
1176  if (placeholderWidget2)
1177  placeholderWidget2->setAutoFillBackground(baseBackground);
1178 
1179  if (aero) {
1180  QPalette pal = pageFrame->palette();
1181  pal.setBrush(QPalette::Window, QColor(255, 255, 255));
1182  pageFrame->setPalette(pal);
1184  pal = antiFlickerWidget->palette();
1185  pal.setBrush(QPalette::Window, QColor(255, 255, 255));
1188  }
1189  }
1190 
1191  mainLayout->addWidget(pageFrame, row++, pageColumn);
1192 
1193  int watermarkEndRow = row;
1194  if (classic)
1195  mainLayout->setRowMinimumHeight(row++, deltaVSpacing);
1196 
1197  if (aero) {
1198  buttonLayout->setContentsMargins(9, 9, 9, 9);
1199  mainLayout->setContentsMargins(0, 11, 0, 0);
1200  }
1201 
1202  int buttonStartColumn = info.extension ? 1 : 0;
1203  int buttonNumColumns = info.extension ? 1 : numColumns;
1204 
1205  if (classic || modern) {
1206  if (!bottomRuler)
1208  mainLayout->addWidget(bottomRuler, row++, buttonStartColumn, 1, buttonNumColumns);
1209  }
1210 
1211  if (classic)
1212  mainLayout->setRowMinimumHeight(row++, deltaVSpacing);
1213 
1214  mainLayout->addLayout(buttonLayout, row++, buttonStartColumn, 1, buttonNumColumns);
1215 
1216  if (info.watermark || info.sideWidget) {
1217  if (info.extension)
1218  watermarkEndRow = row;
1219  mainLayout->addWidget(watermarkLabel, watermarkStartRow, 0,
1220  watermarkEndRow - watermarkStartRow, 1);
1221  }
1222 
1223  mainLayout->setColumnMinimumWidth(0, mac && !info.watermark ? 181 : 0);
1224  if (mac)
1226 
1227  if (headerWidget)
1229  if (titleLabel)
1230  titleLabel->setVisible(info.title);
1231  if (subTitleLabel)
1233  if (bottomRuler)
1234  bottomRuler->setVisible(classic || modern);
1235  if (watermarkLabel)
1237 
1238  layoutInfo = info;
1239 }
const int ClassicHMargin
Definition: qwizard.cpp:87
static const int vMargin
Definition: qwhatsthis.cpp:182
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition: qcolor.h:67
void setPointSize(int)
Sets the point size to pointSize.
Definition: qfont.cpp:1099
QLabel * subTitleLabel
Definition: qwizard.cpp:657
void setFont(const QFont &)
Use the single-argument overload instead.
Definition: qwidget.cpp:4996
const int MacLayoutRightMargin
Definition: qwizard.cpp:91
QFrame * pageFrame
Definition: qwizard.cpp:655
static mach_timebase_info_data_t info
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
const QColor & color() const
Returns the brush color.
Definition: qbrush.h:183
void setWordWrap(bool on)
Definition: qlabel.cpp:579
static void changeSpacerSize(QLayout *layout, int index, int width, int height)
Definition: qwizard.cpp:94
void addLayout(QLayout *, int row, int column, Qt::Alignment=0)
Places the layout at position (row, column) in the grid.
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
void setColumnMinimumWidth(int column, int minSize)
Sets the minimum width of column column to minSize pixels.
int count() const
Reimplemented Function
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QWidget * sideWidget
Definition: qwizard.cpp:654
QWidget * placeholderWidget1
Definition: qwizard.cpp:650
void setMidLineWidth(int)
Definition: qframe.cpp:395
void setLineWidth(int)
Definition: qframe.cpp:368
int topLevelMarginBottom
Definition: qwizard.cpp:227
QWizardAntiFlickerWidget * antiFlickerWidget
Definition: qwizard.cpp:649
void setMinimumHeight(int minh)
Definition: qwidget.cpp:4334
int rowCount() const
Returns the number of rows in this grid.
void setParent(QObject *)
Makes the object a child of parent.
Definition: qobject.cpp:1950
#define Q_Q(Class)
Definition: qglobal.h:2483
const int MacLayoutBottomMargin
Definition: qwizard.cpp:92
void setHorizontalSpacing(int spacing)
int columnCount() const
Returns the number of columns in this grid.
QLayoutItem * takeAt(int index)
Reimplemented Function
void setBackgroundRole(QPalette::ColorRole)
Sets the background role of the widget to role.
Definition: qwidget.cpp:4708
QWizardRuler * bottomRuler
Definition: qwizard.cpp:658
void setBrush(ColorRole cr, const QBrush &brush)
Sets the brush for the given color role to the specified brush for all groups in the palette...
Definition: qpalette.h:206
The QLayoutItem class provides an abstract item that a QLayout manipulates.
Definition: qlayoutitem.h:64
void setBold(bool)
If enable is true sets the font&#39;s weight to QFont::Bold ; otherwise sets the weight to QFont::Normal...
Definition: qfont.h:352
void insertWidget(int index, QWidget *widget, int stretch=0, Qt::Alignment alignment=0)
Inserts widget at position index, with stretch factor stretch and alignment alignment.
void setContentsMargins(int left, int top, int right, int bottom)
Sets the margins around the contents of the widget to have the sizes left, top, right, and bottom.
Definition: qwidget.cpp:7449
const QPalette & palette() const
void setRowMinimumHeight(int row, int minSize)
Sets the minimum height of row row to minSize pixels.
QHBoxLayout * buttonLayout
Definition: qwizard.cpp:664
void setVerticalSpacing(int spacing)
QWatermarkLabel * watermarkLabel
Definition: qwizard.cpp:653
virtual void setVisible(bool visible)
Definition: qwidget.cpp:7991
const QBrush & brush(ColorGroup cg, ColorRole cr) const
Returns the brush in the specified color group, used for the given color role.
Definition: qpalette.cpp:874
static const int hMargin
Definition: qwhatsthis.cpp:183
void setAutoFillBackground(bool enabled)
Definition: qwidget.cpp:631
const int MacLayoutLeftMargin
Definition: qwizard.cpp:89
ushort alpha
Returns the alpha color component of this color.
Definition: qcolor.h:242
The QFont class specifies a font used for drawing text.
Definition: qfont.h:64
virtual QLayout * layout()
If this item is a QLayout, it is returned as a QLayout; otherwise 0 is returned.
QVBoxLayout * pageVBoxLayout
Definition: qwizard.cpp:663
void setSpacing(int spacing)
Reimplements QLayout::setSpacing().
Definition: qboxlayout.cpp:667
QLabel * titleLabel
Definition: qwizard.cpp:656
void setColor(ColorGroup cg, ColorRole cr, const QColor &color)
Sets the color in the specified color group, used for the given color role, to the specified solid co...
Definition: qpalette.h:201
void setFrameStyle(int)
Sets the frame style to style.
Definition: qframe.cpp:329
QWizardHeader * headerWidget
Definition: qwizard.cpp:652
The QLabel widget provides a text or image display.
Definition: qlabel.h:55
QWizardLayoutInfo layoutInfo
Definition: qwizard.cpp:625
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
int pointSize() const
Returns the point size of the font.
Definition: qfont.cpp:981
QGridLayout * mainLayout
Definition: qwizard.cpp:665
void addWidget(QWidget *w)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: qgridlayout.h:116
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:235
void setSizePolicy(QSizePolicy)
Definition: qwidget.cpp:10198
QWidget * placeholderWidget2
Definition: qwizard.cpp:651
void setMargin(int)
Definition: qlayout.cpp:464
void setSpacing(int spacing)
This function sets both the vertical and horizontal spacing to spacing.
void setAlignment(Qt::Alignment)
Without this function, a call to e.
Definition: qlabel.cpp:532
void setPalette(const QPalette &)
Use the single-argument overload instead.
Definition: qwidget.cpp:4858
const int MacButtonTopMargin
Definition: qwizard.cpp:88
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
void setIndent(int)
Definition: qlabel.cpp:620
void setFixedHeight(int h)
Sets both the minimum and maximum heights of the widget to h without changing the widths...
Definition: qwidget.cpp:4388
The QPalette class contains color groups for each widget state.
Definition: qpalette.h:61

◆ removeFieldAt()

void QWizardPrivate::removeFieldAt ( int  index)

Definition at line 805 of file qwizard.cpp.

806 {
807  Q_Q(QWizard);
808 
809  const QWizardField &field = fields.at(index);
810  fieldIndexMap.remove(field.name);
811  if (field.mandatory && !field.changedSignal.isEmpty())
813  field.page, SLOT(_q_maybeEmitCompleteChanged()));
815  field.object, SIGNAL(destroyed(QObject*)), q,
818 }
void remove(int i)
Removes the element at index position i.
Definition: qvector.h:374
QByteArray changedSignal
Definition: qwizard.cpp:179
QWizardPage * page
Definition: qwizard.cpp:174
#define SLOT(a)
Definition: qobjectdefs.h:226
QVector< QWizardField > fields
Definition: qwizard.cpp:615
The QObject class is the base class of all Qt objects.
Definition: qobject.h:111
#define Q_Q(Class)
Definition: qglobal.h:2483
#define SIGNAL(a)
Definition: qobjectdefs.h:227
QString name
Definition: qwizard.cpp:175
QMap< QString, int > fieldIndexMap
Definition: qwizard.cpp:616
const T & at(int i) const
Returns the item at index position i in the vector.
Definition: qvector.h:350
bool mandatory
Definition: qwizard.cpp:176
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
Definition: qobject.cpp:2895
int remove(const Key &key)
Removes all the items that have the key key from the map.
Definition: qmap.h:662
QObject * object
Definition: qwizard.cpp:177
quint16 index
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421
void _q_handleFieldObjectDestroyed(QObject *)
Definition: qwizard.cpp:1719
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ reset()

void QWizardPrivate::reset ( )

Definition at line 751 of file qwizard.cpp.

752 {
753  Q_Q(QWizard);
754  if (current != -1) {
755  q->currentPage()->hide();
757  for (int i = history.count() - 1; i >= 0; --i)
758  q->cleanupPage(history.at(i));
759  history.clear();
760  initialized.clear();
761 
762  current = -1;
763  emit q->currentIdChanged(-1);
764  }
765 }
QList< int > history
Definition: qwizard.cpp:618
void cleanupPagesNotInHistory()
Definition: qwizard.cpp:767
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
#define Q_Q(Class)
Definition: qglobal.h:2483
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
#define emit
Definition: qobjectdefs.h:76
void clear()
Definition: qset.h:87
void clear()
Removes all items from the list.
Definition: qlist.h:764
QSet< int > initialized
Definition: qwizard.cpp:619
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ setButtonLayout()

void QWizardPrivate::setButtonLayout ( const QWizard::WizardButton array,
int  size 
)

Definition at line 1504 of file qwizard.cpp.

1505 {
1506  QWidget *prev = pageFrame;
1507 
1508  for (int i = buttonLayout->count() - 1; i >= 0; --i) {
1509  QLayoutItem *item = buttonLayout->takeAt(i);
1510  if (QWidget *widget = item->widget())
1511  widget->hide();
1512  delete item;
1513  }
1514 
1515  for (int i = 0; i < size; ++i) {
1516  QWizard::WizardButton which = array[i];
1517  if (which == QWizard::Stretch) {
1519  } else if (which != QWizard::NoButton) {
1520  ensureButton(which);
1521  buttonLayout->addWidget(btns[which]);
1522 
1523  // Back, Next, Commit, and Finish are handled in _q_updateButtonStates()
1524  if (which != QWizard::BackButton && which != QWizard::NextButton
1525  && which != QWizard::CommitButton && which != QWizard::FinishButton)
1526  btns[which]->show();
1527 
1528  if (prev)
1529  QWidget::setTabOrder(prev, btns[which]);
1530  prev = btns[which];
1531  }
1532  }
1533 
1535 }
WizardButton
This enum specifies the buttons in a wizard.
Definition: qwizard.h:72
QFrame * pageFrame
Definition: qwizard.cpp:655
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
QPointer< QWidget > widget
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
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...
void addStretch(int stretch=0)
Adds a stretchable space (a QSpacerItem) with zero minimum size and stretch factor stretch to the end...
The QLayoutItem class provides an abstract item that a QLayout manipulates.
Definition: qlayoutitem.h:64
bool ensureButton(QWizard::WizardButton which) const
Definition: qwizard.cpp:1380
int count() const
Reimplemented Function
Definition: qboxlayout.cpp:769
QHBoxLayout * buttonLayout
Definition: qwizard.cpp:664
void show()
Shows the widget and its child widgets.
void hide()
Hides the widget.
Definition: qwidget.h:501
QLayoutItem * takeAt(int)
Reimplemented Function
Definition: qboxlayout.cpp:787
virtual QWidget * widget()
If this item is a QWidget, it is returned as a QWidget; otherwise 0 is returned.
static void setTabOrder(QWidget *, QWidget *)
Puts the second widget after the first widget in the focus order.
Definition: qwidget.cpp:6975
void _q_updateButtonStates()
Definition: qwizard.cpp:1659

◆ setStyle()

void QWizardPrivate::setStyle ( QStyle style)

Definition at line 1746 of file qwizard.cpp.

1747 {
1748  for (int i = 0; i < QWizard::NButtons; i++)
1749  if (btns[i])
1750  btns[i]->setStyle(style);
1751  const PageMap::const_iterator pcend = pageMap.constEnd();
1752  for (PageMap::const_iterator it = pageMap.constBegin(); it != pcend; ++it)
1753  it.value()->setStyle(style);
1754 }
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
#define it(className, varName)
void setStyle(QStyle *)
Sets the widget&#39;s GUI style to style.
Definition: qwidget.cpp:2772
PageMap pageMap
Definition: qwizard.cpp:614
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the map.
Definition: qmap.h:374
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the map...
Definition: qmap.h:380
friend class const_iterator
Definition: qmap.h:369

◆ switchToPage()

void QWizardPrivate::switchToPage ( int  newId,
Direction  direction 
)

Definition at line 820 of file qwizard.cpp.

821 {
822  Q_Q(QWizard);
823 
824  disableUpdates();
825 
826  int oldId = current;
827  if (QWizardPage *oldPage = q->currentPage()) {
828  oldPage->hide();
829 
830  if (direction == Backward) {
831  if (!(opts & QWizard::IndependentPages)) {
832  q->cleanupPage(oldId);
833  initialized.remove(oldId);
834  }
835  Q_ASSERT(history.last() == oldId);
837  Q_ASSERT(history.last() == newId);
838  }
839  }
840 
841  current = newId;
842 
843  QWizardPage *newPage = q->currentPage();
844  if (newPage) {
845  if (direction == Forward) {
846  if (!initialized.contains(current)) {
847  initialized.insert(current);
848  q->initializePage(current);
849  }
850  history.append(current);
851  }
852  newPage->show();
853  }
854 
855  canContinue = (q->nextId() != -1);
856  canFinish = (newPage && newPage->isFinalPage());
857 
860 
861  const QWizard::WizardButton nextOrCommit =
862  newPage && newPage->isCommitPage() ? QWizard::CommitButton : QWizard::NextButton;
863  QAbstractButton *nextOrFinishButton =
864  btns[canContinue ? nextOrCommit : QWizard::FinishButton];
865  QWidget *candidate = 0;
866 
867  /*
868  If there is no default button and the Next or Finish button
869  is enabled, give focus directly to it as a convenience to the
870  user. This is the normal case on Mac OS X.
871 
872  Otherwise, give the focus to the new page's first child that
873  can handle it. If there is no such child, give the focus to
874  Next or Finish.
875  */
876  if ((opts & QWizard::NoDefaultButton) && nextOrFinishButton->isEnabled()) {
877  candidate = nextOrFinishButton;
878  } else if (newPage) {
879  candidate = iWantTheFocus(newPage);
880  }
881  if (!candidate)
882  candidate = nextOrFinishButton;
883  candidate->setFocus();
884 
886  q->updateGeometry();
887 
888  enableUpdates();
889  updateLayout();
890 
891  emit q->currentIdChanged(current);
892 }
The QAbstractButton class is the abstract base class of button widgets, providing functionality commo...
WizardButton
This enum specifies the buttons in a wizard.
Definition: qwizard.h:72
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
The QWizardPage class is the base class for wizard pages.
Definition: qwizard.h:214
QList< int > history
Definition: qwizard.cpp:618
bool remove(const T &value)
Definition: qset.h:89
The QWidget class is the base class of all user interface objects.
Definition: qwidget.h:150
void updateButtonTexts()
Definition: qwizard.cpp:1445
static QWidget * iWantTheFocus(QWidget *ancestor)
Definition: qwizard.cpp:102
void removeLast()
Removes the last item in the list.
Definition: qlist.h:287
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
bool isFinalPage() const
This function is called by QWizard to determine whether the Finish button should be shown for this pa...
Definition: qwizard.cpp:3774
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
bool contains(const T &value) const
Definition: qset.h:91
#define emit
Definition: qobjectdefs.h:76
const_iterator insert(const T &value)
Definition: qset.h:179
void updateLayout()
Definition: qwizard.cpp:1241
void show()
Shows the widget and its child widgets.
bool isEnabled() const
Definition: qwidget.h:948
QSet< int > initialized
Definition: qwizard.cpp:619
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
QWizard::WizardOptions opts
Definition: qwizard.cpp:629
T & last()
Returns a reference to the last item in the list.
Definition: qlist.h:284
bool canContinue
Definition: qwizard.cpp:623
void disableUpdates()
Definition: qwizard.cpp:1629
void enableUpdates()
Definition: qwizard.cpp:1638
bool isCommitPage() const
Returns true if this page is a commit page; otherwise returns false.
Definition: qwizard.cpp:3817
void _q_updateButtonStates()
Definition: qwizard.cpp:1659
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
Qt::LayoutDirection direction

◆ updateButtonLayout()

void QWizardPrivate::updateButtonLayout ( )

Definition at line 1463 of file qwizard.cpp.

1464 {
1467  for (int i = 0; i < buttonsCustomLayout.count(); ++i)
1468  array[i] = buttonsCustomLayout.at(i);
1469  setButtonLayout(array.constData(), array.count());
1470  } else {
1471  // Positions:
1472  // Help Stretch Custom1 Custom2 Custom3 Cancel Back Next Commit Finish Cancel Help
1473 
1474  const int ArraySize = 12;
1475  QWizard::WizardButton array[ArraySize];
1476  memset(array, -1, sizeof(array));
1477  Q_ASSERT(array[0] == QWizard::NoButton);
1478 
1479  if (opts & QWizard::HaveHelpButton) {
1480  int i = (opts & QWizard::HelpButtonOnRight) ? 11 : 0;
1481  array[i] = QWizard::HelpButton;
1482  }
1483  array[1] = QWizard::Stretch;
1485  array[2] = QWizard::CustomButton1;
1487  array[3] = QWizard::CustomButton2;
1489  array[4] = QWizard::CustomButton3;
1490 
1491  if (!(opts & QWizard::NoCancelButton)) {
1492  int i = (opts & QWizard::CancelButtonOnLeft) ? 5 : 10;
1493  array[i] = QWizard::CancelButton;
1494  }
1495  array[6] = QWizard::BackButton;
1496  array[7] = QWizard::NextButton;
1497  array[8] = QWizard::CommitButton;
1498  array[9] = QWizard::FinishButton;
1499 
1500  setButtonLayout(array, ArraySize);
1501  }
1502 }
WizardButton
This enum specifies the buttons in a wizard.
Definition: qwizard.h:72
void setButtonLayout(const QWizard::WizardButton *array, int size)
Definition: qwizard.cpp:1504
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
QList< QWizard::WizardButton > buttonsCustomLayout
Definition: qwizard.cpp:632
bool buttonsHaveCustomLayout
Definition: qwizard.cpp:631
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
QWizard::WizardOptions opts
Definition: qwizard.cpp:629

◆ updateButtonTexts()

void QWizardPrivate::updateButtonTexts ( )

Definition at line 1445 of file qwizard.cpp.

1446 {
1447  Q_Q(QWizard);
1448  for (int i = 0; i < QWizard::NButtons; ++i) {
1449  if (btns[i]) {
1450  if (q->currentPage() && (q->currentPage()->d_func()->buttonCustomTexts.contains(i)))
1451  btns[i]->setText(q->currentPage()->d_func()->buttonCustomTexts.value(i));
1452  else if (buttonCustomTexts.contains(i))
1453  btns[i]->setText(buttonCustomTexts.value(i));
1454  else if (i < QWizard::NStandardButtons)
1455  btns[i]->setText(buttonDefaultText(wizStyle, i, this));
1456 #ifdef QT_SOFTKEYS_ENABLED
1457  softKeys[i]->setText(btns[i]->text());
1458 #endif
1459  }
1460  }
1461 }
void setText(const QString &text)
QAbstractButton * btns[QWizard::NButtons]
Definition: qwizard.cpp:647
static QString buttonDefaultText(int wstyle, int which, const QWizardPrivate *wizardPrivate)
Definition: qwizard.cpp:680
#define Q_Q(Class)
Definition: qglobal.h:2483
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
const T value(const Key &key) const
Returns the value associated with the key key.
Definition: qmap.h:499
bool contains(const Key &key) const
Returns true if the map contains an item with key key; otherwise returns false.
Definition: qmap.h:553
QMap< int, QString > buttonCustomTexts
Definition: qwizard.cpp:630
#define text
Definition: qobjectdefs.h:80
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ updateCurrentPage()

void QWizardPrivate::updateCurrentPage ( )

Definition at line 1339 of file qwizard.cpp.

1340 {
1341  Q_Q(QWizard);
1342  if (q->currentPage()) {
1343  canContinue = (q->nextId() != -1);
1344  canFinish = q->currentPage()->isFinalPage();
1345  } else {
1346  canContinue = false;
1347  canFinish = false;
1348  }
1351 }
void updateButtonTexts()
Definition: qwizard.cpp:1445
#define Q_Q(Class)
Definition: qglobal.h:2483
bool canContinue
Definition: qwizard.cpp:623
void _q_updateButtonStates()
Definition: qwizard.cpp:1659
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ updateLayout()

void QWizardPrivate::updateLayout ( )

Definition at line 1241 of file qwizard.cpp.

1242 {
1243  Q_Q(QWizard);
1244 
1245  disableUpdates();
1246 
1248  if (layoutInfo != info)
1249  recreateLayout(info);
1250  QWizardPage *page = q->currentPage();
1251 
1252  // If the page can expand vertically, let it stretch "infinitely" more
1253  // than the QSpacerItem at the bottom. Otherwise, let the QSpacerItem
1254  // stretch "infinitely" more than the page. Change the bottom item's
1255  // policy accordingly. The case that the page has no layout is basically
1256  // for Designer, only.
1257  if (page) {
1258  bool expandPage = !page->layout();
1259  if (!expandPage) {
1260  const QLayoutItem *pageItem = pageVBoxLayout->itemAt(pageVBoxLayout->indexOf(page));
1261  expandPage = pageItem->expandingDirections() & Qt::Vertical;
1262  }
1263  QSpacerItem *bottomSpacer = pageVBoxLayout->itemAt(pageVBoxLayout->count() - 1)->spacerItem();
1264  Q_ASSERT(bottomSpacer);
1267  }
1268 
1269  if (info.header) {
1270  Q_ASSERT(page);
1271  headerWidget->setup(info, page->title(), page->subTitle(),
1274  }
1275 
1276  if (info.watermark || info.sideWidget) {
1277  QPixmap pix;
1278  if (info.watermark) {
1279  if (page)
1280  pix = page->pixmap(QWizard::WatermarkPixmap);
1281  else
1282  pix = q->pixmap(QWizard::WatermarkPixmap);
1283  }
1284  watermarkLabel->setPixmap(pix); // in case there is no watermark and we show the side widget we need to clear the watermark
1285  }
1286 
1287  if (info.title) {
1288  Q_ASSERT(page);
1290  titleLabel->setText(page->title());
1291  }
1292  if (info.subTitle) {
1293  Q_ASSERT(page);
1295  subTitleLabel->setText(page->subTitle());
1296  }
1297 
1298  enableUpdates();
1299  updateMinMaxSizes(info);
1300 }
QLabel * subTitleLabel
Definition: qwizard.cpp:657
QLayoutItem * itemAt(int) const
Reimplemented Function
Definition: qboxlayout.cpp:778
void setup(const QWizardLayoutInfo &info, const QString &title, const QString &subTitle, const QPixmap &logo, const QPixmap &banner, Qt::TextFormat titleFormat, Qt::TextFormat subTitleFormat)
Definition: qwizard.cpp:346
static mach_timebase_info_data_t info
void setTextFormat(Qt::TextFormat)
Definition: qlabel.cpp:1497
void setText(const QString &)
Definition: qlabel.cpp:366
The QWizardPage class is the base class for wizard pages.
Definition: qwizard.h:214
Qt::TextFormat subTitleFmt
Definition: qwizard.cpp:634
QPixmap pixmap(QWizard::WizardPixmap which) const
Returns the pixmap set for role which.
Definition: qwizard.cpp:3614
virtual Qt::Orientations expandingDirections() const =0
Returns whether this layout item can make use of more space than sizeHint().
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
void setPixmap(const QPixmap &)
Definition: qlabel.cpp:439
#define Q_Q(Class)
Definition: qglobal.h:2483
void invalidate()
Resets cached information.
Definition: qboxlayout.cpp:759
The QLayoutItem class provides an abstract item that a QLayout manipulates.
Definition: qlayoutitem.h:64
The QSpacerItem class provides blank space in a layout.
Definition: qlayoutitem.h:96
int count() const
Reimplemented Function
Definition: qboxlayout.cpp:769
virtual int indexOf(QWidget *) const
Searches for widget widget in this layout (not including child layouts).
Definition: qlayout.cpp:1378
QString subTitle
the subtitle of the page
Definition: qwizard.h:218
QWatermarkLabel * watermarkLabel
Definition: qwizard.cpp:653
void updateMinMaxSizes(const QWizardLayoutInfo &info)
Definition: qwizard.cpp:1302
QVBoxLayout * pageVBoxLayout
Definition: qwizard.cpp:663
QLabel * titleLabel
Definition: qwizard.cpp:656
void disableUpdates()
Definition: qwizard.cpp:1629
QString title
the title of the page
Definition: qwizard.h:217
QWizardHeader * headerWidget
Definition: qwizard.cpp:652
QWizardLayoutInfo layoutInfo
Definition: qwizard.cpp:625
The QPixmap class is an off-screen image representation that can be used as a paint device...
Definition: qpixmap.h:71
void recreateLayout(const QWizardLayoutInfo &info)
Definition: qwizard.cpp:959
void enableUpdates()
Definition: qwizard.cpp:1638
QLayout * layout() const
Returns the layout manager that is installed on this widget, or 0 if no layout manager is installed...
Definition: qwidget.cpp:10073
Qt::TextFormat titleFmt
Definition: qwizard.cpp:633
void changeSize(int w, int h, QSizePolicy::Policy hData=QSizePolicy::Minimum, QSizePolicy::Policy vData=QSizePolicy::Minimum)
Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hPolic...
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
QWizardLayoutInfo layoutInfoForCurrentPage()
Definition: qwizard.cpp:900

◆ updateMinMaxSizes()

void QWizardPrivate::updateMinMaxSizes ( const QWizardLayoutInfo info)

Definition at line 1302 of file qwizard.cpp.

1303 {
1304  Q_Q(QWizard);
1305 
1306  int extraHeight = 0;
1307 #if !defined(QT_NO_STYLE_WINDOWSVISTA)
1308  if (isVistaThemeEnabled())
1309  extraHeight = vistaHelper->titleBarSize() + vistaHelper->topOffset();
1310 #endif
1311  QSize minimumSize = mainLayout->totalMinimumSize() + QSize(0, extraHeight);
1312  QSize maximumSize = mainLayout->totalMaximumSize();
1313  if (info.header && headerWidget->maximumWidth() != QWIDGETSIZE_MAX) {
1314  minimumSize.setWidth(headerWidget->maximumWidth());
1315  maximumSize.setWidth(headerWidget->maximumWidth());
1316  }
1317  if (info.watermark && !info.sideWidget) {
1318  minimumSize.setHeight(mainLayout->totalSizeHint().height());
1319  maximumSize.setHeight(mainLayout->totalSizeHint().height());
1320  }
1321  if (q->minimumWidth() == minimumWidth) {
1322  minimumWidth = minimumSize.width();
1323  q->setMinimumWidth(minimumWidth);
1324  }
1325  if (q->minimumHeight() == minimumHeight) {
1326  minimumHeight = minimumSize.height();
1327  q->setMinimumHeight(minimumHeight);
1328  }
1329  if (q->maximumWidth() == maximumWidth) {
1330  maximumWidth = maximumSize.width();
1331  q->setMaximumWidth(maximumWidth);
1332  }
1333  if (q->maximumHeight() == maximumHeight) {
1334  maximumHeight = maximumSize.height();
1335  q->setMaximumHeight(maximumHeight);
1336  }
1337 }
#define QWIDGETSIZE_MAX
Defines the maximum size for a QWidget object.
Definition: qwidget.h:1087
static int topOffset()
void setHeight(int h)
Sets the height to the given height.
Definition: qsize.h:135
#define Q_Q(Class)
Definition: qglobal.h:2483
void setWidth(int w)
Sets the width to the given width.
Definition: qsize.h:132
int width() const
Returns the width.
Definition: qsize.h:126
QSize totalMaximumSize() const
Also takes contentsMargins and menu bar into account.
Definition: qlayout.cpp:902
static int titleBarSize()
bool isVistaThemeEnabled() const
Definition: qwizard.cpp:1619
QSize totalSizeHint() const
Also takes contentsMargins and menu bar into account.
Definition: qlayout.cpp:874
int height() const
Returns the height.
Definition: qsize.h:129
QVistaHelper * vistaHelper
Definition: qwizard.cpp:668
QWizardHeader * headerWidget
Definition: qwizard.cpp:652
QSize totalMinimumSize() const
Also takes contentsMargins and menu bar into account.
Definition: qlayout.cpp:848
QGridLayout * mainLayout
Definition: qwizard.cpp:665
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59
int maximumWidth() const

◆ updatePixmap()

void QWizardPrivate::updatePixmap ( QWizard::WizardPixmap  which)

Definition at line 1542 of file qwizard.cpp.

1543 {
1544  Q_Q(QWizard);
1545  if (which == QWizard::BackgroundPixmap) {
1546  if (wizStyle == QWizard::MacStyle) {
1547  q->update();
1548  q->updateGeometry();
1549  }
1550  } else {
1551  updateLayout();
1552  }
1553 }
#define Q_Q(Class)
Definition: qglobal.h:2483
QWizard::WizardStyle wizStyle
Definition: qwizard.cpp:628
void updateLayout()
Definition: qwizard.cpp:1241
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

◆ vistaDisabled()

bool QWizardPrivate::vistaDisabled ( ) const

Definition at line 1556 of file qwizard.cpp.

1557 {
1558  Q_Q(const QWizard);
1559  const QVariant v = q->property("_q_wizard_vista_off");
1560  return v.isValid() && v.toBool();
1561 }
The QVariant class acts like a union for the most common Qt data types.
Definition: qvariant.h:92
bool toBool() const
Returns the variant as a bool if the variant has type() Bool.
Definition: qvariant.cpp:2691
#define Q_Q(Class)
Definition: qglobal.h:2483
bool isValid() const
Returns true if the storage type of this variant is not QVariant::Invalid; otherwise returns false...
Definition: qvariant.h:485
The QWizard class provides a framework for wizards.
Definition: qwizard.h:59

Properties

◆ @157

union { ... }

◆ antiFlickerWidget

QWizardAntiFlickerWidget* QWizardPrivate::antiFlickerWidget

Definition at line 649 of file qwizard.cpp.

◆ back

QAbstractButton* QWizardPrivate::back

Definition at line 640 of file qwizard.cpp.

◆ bottomRuler

QWizardRuler* QWizardPrivate::bottomRuler

Definition at line 658 of file qwizard.cpp.

◆ btn

struct { ... } QWizardPrivate::btn

◆ btns

QAbstractButton* QWizardPrivate::btns[QWizard::NButtons]
mutable

Definition at line 647 of file qwizard.cpp.

◆ buttonCustomTexts

QMap<int, QString> QWizardPrivate::buttonCustomTexts

Definition at line 630 of file qwizard.cpp.

◆ buttonLayout

QHBoxLayout* QWizardPrivate::buttonLayout

Definition at line 664 of file qwizard.cpp.

◆ buttonsCustomLayout

QList<QWizard::WizardButton> QWizardPrivate::buttonsCustomLayout

Definition at line 632 of file qwizard.cpp.

◆ buttonsHaveCustomLayout

bool QWizardPrivate::buttonsHaveCustomLayout

Definition at line 631 of file qwizard.cpp.

◆ cancel

QAbstractButton* QWizardPrivate::cancel

Definition at line 644 of file qwizard.cpp.

◆ canContinue

bool QWizardPrivate::canContinue

Definition at line 623 of file qwizard.cpp.

◆ canFinish

bool QWizardPrivate::canFinish

Definition at line 624 of file qwizard.cpp.

◆ commit

QAbstractButton* QWizardPrivate::commit

Definition at line 642 of file qwizard.cpp.

◆ current

int QWizardPrivate::current

Definition at line 622 of file qwizard.cpp.

◆ defaultPixmaps

QPixmap QWizardPrivate::defaultPixmaps[QWizard::NPixmaps]
mutable

Definition at line 635 of file qwizard.cpp.

◆ defaultPropertyTable

QVector<QWizardDefaultProperty> QWizardPrivate::defaultPropertyTable

Definition at line 617 of file qwizard.cpp.

◆ disableUpdatesCount

int QWizardPrivate::disableUpdatesCount

Definition at line 626 of file qwizard.cpp.

◆ fieldIndexMap

QMap<QString, int> QWizardPrivate::fieldIndexMap

Definition at line 616 of file qwizard.cpp.

◆ fields

QVector<QWizardField> QWizardPrivate::fields

Definition at line 615 of file qwizard.cpp.

◆ finish

QAbstractButton* QWizardPrivate::finish

Definition at line 643 of file qwizard.cpp.

◆ headerWidget

QWizardHeader* QWizardPrivate::headerWidget

Definition at line 652 of file qwizard.cpp.

◆ help

QAbstractButton* QWizardPrivate::help

Definition at line 645 of file qwizard.cpp.

◆ history

QList<int> QWizardPrivate::history

Definition at line 618 of file qwizard.cpp.

◆ inHandleAeroStyleChange

bool QWizardPrivate::inHandleAeroStyleChange

Definition at line 672 of file qwizard.cpp.

◆ initialized

QSet<int> QWizardPrivate::initialized

Definition at line 619 of file qwizard.cpp.

◆ layoutInfo

QWizardLayoutInfo QWizardPrivate::layoutInfo

Definition at line 625 of file qwizard.cpp.

◆ mainLayout

QGridLayout* QWizardPrivate::mainLayout

Definition at line 665 of file qwizard.cpp.

◆ maximumHeight

int QWizardPrivate::maximumHeight

Definition at line 677 of file qwizard.cpp.

◆ maximumWidth

int QWizardPrivate::maximumWidth

Definition at line 676 of file qwizard.cpp.

◆ minimumHeight

int QWizardPrivate::minimumHeight

Definition at line 675 of file qwizard.cpp.

◆ minimumWidth

int QWizardPrivate::minimumWidth

Definition at line 674 of file qwizard.cpp.

◆ next

QAbstractButton* QWizardPrivate::next

Definition at line 641 of file qwizard.cpp.

◆ opts

QWizard::WizardOptions QWizardPrivate::opts

Definition at line 629 of file qwizard.cpp.

◆ pageFrame

QFrame* QWizardPrivate::pageFrame

Definition at line 655 of file qwizard.cpp.

◆ pageMap

PageMap QWizardPrivate::pageMap

Definition at line 614 of file qwizard.cpp.

◆ pageVBoxLayout

QVBoxLayout* QWizardPrivate::pageVBoxLayout

Definition at line 663 of file qwizard.cpp.

◆ placeholderWidget1

QWidget* QWizardPrivate::placeholderWidget1

Definition at line 650 of file qwizard.cpp.

◆ placeholderWidget2

QWidget* QWizardPrivate::placeholderWidget2

Definition at line 651 of file qwizard.cpp.

◆ sideWidget

QWidget* QWizardPrivate::sideWidget

Definition at line 654 of file qwizard.cpp.

◆ start

int QWizardPrivate::start

Definition at line 620 of file qwizard.cpp.

◆ startSetByUser

bool QWizardPrivate::startSetByUser

Definition at line 621 of file qwizard.cpp.

◆ subTitleFmt

Qt::TextFormat QWizardPrivate::subTitleFmt

Definition at line 634 of file qwizard.cpp.

◆ subTitleLabel

QLabel* QWizardPrivate::subTitleLabel

Definition at line 657 of file qwizard.cpp.

◆ titleFmt

Qt::TextFormat QWizardPrivate::titleFmt

Definition at line 633 of file qwizard.cpp.

◆ titleLabel

QLabel* QWizardPrivate::titleLabel

Definition at line 656 of file qwizard.cpp.

◆ vistaHelper

QVistaHelper* QWizardPrivate::vistaHelper

Definition at line 668 of file qwizard.cpp.

◆ vistaInitPending

bool QWizardPrivate::vistaInitPending

Definition at line 669 of file qwizard.cpp.

◆ vistaState

QVistaHelper::VistaState QWizardPrivate::vistaState

Definition at line 670 of file qwizard.cpp.

◆ vistaStateChanged

bool QWizardPrivate::vistaStateChanged

Definition at line 671 of file qwizard.cpp.

◆ watermarkLabel

QWatermarkLabel* QWizardPrivate::watermarkLabel

Definition at line 653 of file qwizard.cpp.

◆ wizStyle

QWizard::WizardStyle QWizardPrivate::wizStyle

Definition at line 628 of file qwizard.cpp.


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