/**
* @return The basic size of all items. The size of an item may be larger than
- * the basic size (see KItemListView::itemSizeHint() and KItemListView::itemRect()).
+ * the basic size (see KItemListView::itemRect()).
*/
QSizeF itemSize() const;
+ /**
+ * @return The size hint of all items. It is provided by the KItemListSizeHintResolver.
+ */
+ QSizeF itemSizeHint() const;
+
const KItemListStyleOption& styleOption() const;
virtual void setGeometry(const QRectF& rect) Q_DECL_OVERRIDE;
int lastVisibleIndex() const;
/**
- * @return Calculates the required size for all items in the model.
- * It might be larger than KItemListView::itemSize().
- * In this case the layout grid will be stretched to assure an
- * unclipped item.
- * NOTE: the logical height (width) is actually the
- * width (height) if the scroll orientation is Qt::Vertical!
+ * Calculates the required size for all items in the model.
+ * It might be larger than KItemListView::itemSize().
+ * In this case the layout grid will be stretched to assure an
+ * unclipped item.
+ *
+ * @note the logical height (width) is actually the
+ * width (height) if the scroll orientation is Qt::Vertical!
*/
void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint) const;
/**
* Shows a drop-indicator between items dependent on the given
- * cursor position. The cursor position is relative the the upper left
+ * cursor position. The cursor position is relative to the upper left
* edge of the view.
* @return Index of the item where the dropping is done. An index of -1
* indicates that the item has been dropped after the last item.
KItemListWidgetCreator();
virtual ~KItemListWidgetCreator();
- virtual KItemListWidget* create(KItemListView* view);
+ virtual KItemListWidget* create(KItemListView* view) Q_DECL_OVERRIDE;
- virtual void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const;
+ virtual void calculateItemSizeHints(QVector<qreal>& logicalHeightHints, qreal& logicalWidthHint, const KItemListView* view) const Q_DECL_OVERRIDE;
virtual qreal preferredRoleColumnWidth(const QByteArray& role,
int index,
- const KItemListView* view) const;
+ const KItemListView* view) const Q_DECL_OVERRIDE;
private:
KItemListWidgetInformant* m_informant;
};
{
public:
virtual ~KItemListGroupHeaderCreator();
- virtual KItemListGroupHeader* create(KItemListView* view);
+ virtual KItemListGroupHeader* create(KItemListView* view) Q_DECL_OVERRIDE;
};
template <class T>