29 #ifndef ABSTRACTITEMCONTAINER_H
30 #define ABSTRACTITEMCONTAINER_H
32 #include <QModelIndex>
81 int &lastVisibleBufferIndex,
83 bool fullyVisible)
const;
QList< AbstractViewItem * > m_items
AbstractViewItem * m_prototype
virtual void addItem(const QModelIndex &index)
virtual void removeItemFromVisibleLayout(AbstractViewItem *item)=0
void setSubtreeCacheEnabled(const bool enabled)
virtual int itemCount() const
virtual void addItemToVisibleLayout(int index, AbstractViewItem *item)=0
AbstractViewItem * firstItem()
virtual bool event(QEvent *e)
virtual bool eventFilter(QObject *obj, QEvent *event)
AbstractItemContainer(int bufferSize, QGraphicsWidget *parent=0)
virtual void setListItemCaching(const bool enabled, const int index)=0
bool itemVisibleInView(AbstractViewItem *item, const QRectF &viewRect, bool fullyVisible=true) const
virtual void adjustVisibleContainerSize(const QSizeF &size)=0
virtual void removeItem(const QModelIndex &index)
virtual AbstractViewItem * itemAt(const int row) const
virtual void setItemView(AbstractItemView *view)
virtual ~AbstractItemContainer()
virtual int maxItemCountInItemBuffer() const
AbstractItemView * m_itemView
AbstractViewItem * prototype()
virtual void setTwoColumns(const bool enabled)
void findFirstAndLastVisibleBufferIndex(int &firstVisibleBufferIndex, int &lastVisibleBufferIndex, const QRectF &viewRect, bool fullyVisible) const
AbstractViewItem * findItemByIndex(const QModelIndex &index) const
virtual void setItemPrototype(AbstractViewItem *ptype)
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value)
The QEvent class is the base class of all event classes. Event objects contain event parameters.
QPointF pos
the position of the item
QGraphicsObject * parent
the parent of the item
The QModelIndex class is used to locate data in a data model.
The QObject class is the base class of all Qt objects.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QSizeF class defines the size of a two-dimensional object using floating point precision.
The QVariant class acts like a union for the most common Qt data types.
EGLOutputLayerEXT EGLint EGLAttrib value
#define Q_DISABLE_COPY(Class)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum GLenum GLsizei void * row