29 #include <QGraphicsGridLayout>
35 static const int MinItemHeight = 70;
36 static const int MinItemWidth = 276;
48 m_layout->
addItem(m_item, 0, 0);
77 if (
s.height()<MinItemHeight)
78 s.setHeight(MinItemHeight);
85 return m_item->
data();
121 m_layout->
addItem(m_item2, 0, 1);
125 if (m_layout->
count() > 1) {
QPersistentModelIndex m_index
virtual void updateItemContents()
void setData(const QVariant &value, int role=Qt::DisplayRole)
QVariant data(int role=Qt::DisplayRole) const
The QAbstractItemModel class provides the abstract interface for item model classes.
virtual Q_INVOKABLE QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const =0
The QGraphicsGridLayout class provides a grid layout for managing widgets in Graphics View.
void setHorizontalSpacing(qreal spacing)
void removeAt(int index) override
void setVerticalSpacing(qreal spacing)
void addItem(QGraphicsLayoutItem *item, int row, int column, int rowSpan, int columnSpan, Qt::Alignment alignment=Qt::Alignment())
void setSpacing(qreal spacing)
int count() const override
void setContentsMargins(qreal left, qreal top, qreal right, qreal bottom)
QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
void setSizePolicy(const QSizePolicy &policy)
void setMinimumWidth(qreal width)
The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framewor...
The QSizeF class defines the size of a two-dimensional object using floating point precision.
constexpr void setWidth(qreal w) noexcept
The QVariant class acts like a union for the most common Qt data types.
virtual void setData(const QVariant &value, int role=Qt::DisplayRole)
virtual void resizeEvent(QGraphicsSceneResizeEvent *event)
virtual QSizeF effectiveSizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
virtual QVariant data(int role) const
virtual AbstractViewItem * newItemInstance()
virtual ~RecycledListItem()
void setTwoColumns(const bool enabled)
virtual void setModel(QAbstractItemModel *model)
virtual void updateItemContents()
RecycledListItem(QGraphicsWidget *parent=0)
EGLOutputLayerEXT EGLint EGLAttrib value
GLenum GLenum GLsizei const GLuint GLboolean enabled
QSqlQueryModel * model
[16]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent