4#ifndef QQUICKSTACKLAYOUT_H
5#define QQUICKSTACKLAYOUT_H
18#include <QtQuickLayouts/private/qquicklayoutglobal_p.h>
19#include <QtQuickLayouts/private/qquicklayout_p.h>
30 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
38 int currentIndex()
const;
39 void setCurrentIndex(
int index);
65 enum AdjustCurrentIndexPolicy {
66 DontAdjustCurrentIndex,
72 void childItemsChanged(AdjustCurrentIndexPolicy adjustCurrentIndexPolicy = DontAdjustCurrentIndex);
88 SizeHints &cachedItemSizeHints(
int index)
const;
99 bool explicitCurrentIndex;
106 Q_PROPERTY(
bool isCurrentItem READ isCurrentItem NOTIFY isCurrentItemChanged FINAL)
115 bool isCurrentItem()
const;
116 void setIsCurrentItem(
bool isCurrentItem);
128 bool m_isCurrentItem =
false;
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
virtual void setAlignment(QQuickItem *item, Qt::Alignment align)=0
void itemChange(ItemChange change, const ItemChangeData &value) override
Called when change occurs for this item.
void itemSiblingOrderChanged(QQuickItem *item) override
virtual void rearrange(const QSizeF &)
virtual void invalidate(QQuickItem *childItem=nullptr)
static QQuickLayoutAttached * qmlAttachedProperties(QObject *object)
virtual void setStretchFactor(QQuickItem *item, int stretchFactor, Qt::Orientation orient)=0
bool shouldIgnoreItem(QQuickItem *child) const
virtual QQuickItem * itemAt(int index) const =0
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
virtual QSizeF sizeHint(Qt::SizeHint whichSizeHint) const =0
virtual int itemCount() const =0
void isCurrentItemChanged()
QQuickStackLayoutPrivate()
void currentIndexChanged()
void updateLayoutItems() override
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static void setIndex(int *index, int candidate, int min, int max, bool isIncreasing)
GLenum GLenum GLsizei count
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent