7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qsizepolicy.h>
9#include <QtCore/qrect.h>
27 inline explicit QLayoutItem(Qt::Alignment alignment = Qt::Alignment());
28 virtual ~QLayoutItem();
29 virtual QSize sizeHint()
const = 0;
30 virtual QSize minimumSize()
const = 0;
31 virtual QSize maximumSize()
const = 0;
32 virtual Qt::Orientations expandingDirections()
const = 0;
33 virtual void setGeometry(
const QRect&) = 0;
34 virtual QRect geometry()
const = 0;
35 virtual bool isEmpty()
const = 0;
36 virtual bool hasHeightForWidth()
const;
37 virtual int heightForWidth(
int)
const;
38 virtual int minimumHeightForWidth(
int)
const;
39 virtual void invalidate();
41 virtual QWidget *widget()
const;
42 virtual QLayout *layout();
43 virtual QSpacerItem *spacerItem();
45 Qt::Alignment alignment()
const {
return align; }
46 void setAlignment(Qt::Alignment a);
47 virtual QSizePolicy::ControlTypes controlTypes()
const;
53inline QLayoutItem::QLayoutItem(Qt::Alignment aalignment)
54 : align(aalignment) { }
59 QSpacerItem(
int w,
int h,
60 QSizePolicy::Policy hData = QSizePolicy::Minimum,
61 QSizePolicy::Policy vData = QSizePolicy::Minimum)
62 : width(w), height(h), sizeP(hData, vData) { }
65 void changeSize(
int w,
int h,
66 QSizePolicy::Policy hData = QSizePolicy::Minimum,
67 QSizePolicy::Policy vData = QSizePolicy::Minimum);
68 QSize sizeHint()
const override;
69 QSize minimumSize()
const override;
70 QSize maximumSize()
const override;
71 Qt::Orientations expandingDirections()
const override;
72 bool isEmpty()
const override;
73 void setGeometry(
const QRect&) override;
74 QRect geometry()
const override;
75 QSpacerItem *spacerItem() override;
76 QSizePolicy sizePolicy()
const {
return sizeP; }
87 Q_DISABLE_COPY(QWidgetItem)
90 explicit QWidgetItem(QWidget *w) : wid(w) { }
93 QSize sizeHint()
const override;
94 QSize minimumSize()
const override;
95 QSize maximumSize()
const override;
96 Qt::Orientations expandingDirections()
const override;
97 bool isEmpty()
const override;
98 void setGeometry(
const QRect&) override;
99 QRect geometry()
const override;
100 QWidget *widget()
const override;
102 bool hasHeightForWidth()
const override;
103 int heightForWidth(
int)
const override;
104 int minimumHeightForWidth(
int)
const override;
105 QSizePolicy::ControlTypes controlTypes()
const override;
113 explicit QWidgetItemV2(QWidget *widget);
116 QSize sizeHint()
const override;
117 QSize minimumSize()
const override;
118 QSize maximumSize()
const override;
119 int heightForWidth(
int width)
const override;
122 enum { Dirty = -123, HfwCacheMaxSize = 3 };
124 inline bool useSizeCache()
const;
125 void updateCacheIfNecessary()
const;
126 inline void invalidateSizeCache() {
127 q_cachedMinimumSize.setWidth(Dirty);
131 mutable QSize q_cachedMinimumSize;
132 mutable QSize q_cachedSizeHint;
133 mutable QSize q_cachedMaximumSize;
134 mutable QSize q_cachedHfws[HfwCacheMaxSize];
135 mutable short q_firstCachedHfw;
136 mutable short q_hfwCacheSize;
139 friend class QWidgetPrivate;
141 Q_DISABLE_COPY(QWidgetItemV2)
The QBoxLayout class lines up child widgets horizontally or vertically.
The QHBoxLayout class lines up widgets horizontally.
The QLayoutItem class provides an abstract item that a QLayout manipulates.
The QSpacerItem class provides blank space in a layout.
The QStylePainter class is a convenience class for drawing QStyle elements inside a widget.
The QVBoxLayout class lines up widgets vertically.
QSize minimumSizeHint() const override
\reimp
void setSideWidget(QWidget *widget)
QWatermarkLabel(QWidget *parent, QWidget *sideWidget)
QWidget * sideWidget() const
QWizardDefaultProperty(const char *className, const char *property, const char *changedSignal)
void resolve(const QList< QWizardDefaultProperty > &defaultPropertyTable)
QWizardField(QWizardPage *page, const QString &spec, QObject *object, const char *property, const char *changedSignal)
void findProperty(const QWizardDefaultProperty *properties, int propertyCount)
bool operator!=(const QWizardLayoutInfo &other) const
bool operator==(const QWizardLayoutInfo &other) const
void _q_maybeEmitCompleteChanged()
QMap< int, QString > buttonCustomTexts
void _q_updateCachedCompleteState()
bool cachedIsComplete() const
QPixmap pixmaps[QWizard::NPixmaps]
QList< QWizardField > pendingFields
The QWizardPage class is the base class for wizard pages.
QMap< int, QString > buttonCustomTexts
QMap< QString, int > fieldIndexMap
void setStyle(QStyle *style)
QList< QWizardDefaultProperty > defaultPropertyTable
bool buttonLayoutContains(QWizard::WizardButton which)
void _q_updateButtonStates()
QVBoxLayout * pageVBoxLayout
QWatermarkLabel * watermarkLabel
QWizardLayoutInfo layoutInfoForCurrentPage()
void connectButton(QWizard::WizardButton which) const
void removeFieldAt(int index)
void recreateLayout(const QWizardLayoutInfo &info)
QWizardAntiFlickerWidget * antiFlickerWidget
QWizardHeader * headerWidget
QHBoxLayout * buttonLayout
void updateMinMaxSizes(const QWizardLayoutInfo &info)
void _q_emitCustomButtonClicked()
void setButtonLayout(const QWizard::WizardButton *array, int size)
bool isVistaThemeEnabled() const
void updatePixmap(QWizard::WizardPixmap which)
void _q_handleFieldObjectDestroyed(QObject *)
void switchToPage(int newId, Direction direction)
QList< QWizard::WizardButton > buttonsCustomLayout
QPixmap defaultPixmaps[QWizard::NPixmaps]
QWidget * placeholderWidget2
QWizardRuler * bottomRuler
Qt::TextFormat subTitleFmt
void updateButtonLayout()
QList< QWizardField > fields
bool ensureButton(QWizard::WizardButton which) const
bool buttonsHaveCustomLayout
void cleanupPagesNotInHistory()
QAbstractButton * btns[QWizard::NButtons]
QWidget * placeholderWidget1
void addField(const QWizardField &field)
QWizardLayoutInfo layoutInfo
QWizardRuler(QWidget *parent=nullptr)
The QWizard class provides a framework for wizards.
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE constexpr int QLAYOUTSIZE_MAX
static const char * buttonSlots(QWizard::WizardButton which)
static QString buttonDefaultText(int wstyle, int which, const QWizardPrivate *wizardPrivate)
static QString object_name_for_button(QWizard::WizardButton which)
Q_DECLARE_TYPEINFO(QWizardDefaultProperty, Q_RELOCATABLE_TYPE)
const int ModernHeaderTopMargin
static void changeSpacerSize(QLayout *layout, int index, int width, int height)
const int MacLayoutLeftMargin
const int GapBetweenLogoAndRightEdge
static bool objectInheritsXAndXIsCloserThanY(const QObject *object, const QByteArray &classX, const QByteArray &classY)
static QWidget * iWantTheFocus(QWidget *ancestor)
Q_DECLARE_TYPEINFO(QWizardField, Q_RELOCATABLE_TYPE)
const int MacLayoutBottomMargin
const int MacLayoutRightMargin
static const char * changed_signal(int which)
const size_t NFallbackDefaultProperties
const int MacButtonTopMargin
const char className[16]
[1]
QT_REQUIRE_CONFIG(wizard)