diff -r b7da29130b0e -r 80e4d18b72f5 src/hbwidgets/itemviews/hbabstractitemview.h --- a/src/hbwidgets/itemviews/hbabstractitemview.h Fri Sep 17 08:32:10 2010 +0300 +++ b/src/hbwidgets/itemviews/hbabstractitemview.h Mon Oct 04 00:38:12 2010 +0300 @@ -42,7 +42,7 @@ { Q_OBJECT - Q_ENUMS(SelectionMode ScrollHint) + Q_ENUMS(SelectionMode ScrollHint IconLoadPolicy) Q_FLAGS(ItemAnimations) Q_PROPERTY(bool itemRecycling READ itemRecycling WRITE setItemRecycling) @@ -50,10 +50,18 @@ Q_PROPERTY(QString layoutName READ layoutName WRITE setLayoutName) Q_PROPERTY(bool uniformItemSizes READ uniformItemSizes WRITE setUniformItemSizes) Q_PROPERTY(ItemAnimations enabledAnimations READ enabledAnimations WRITE setEnabledAnimations) - Q_PROPERTY(bool longPressEnabled READ longPressEnabled WRITE setLongPressEnabled ) + Q_PROPERTY(bool longPressEnabled READ longPressEnabled WRITE setLongPressEnabled) + Q_PROPERTY(IconLoadPolicy iconLoadPolicy READ iconLoadPolicy WRITE setIconLoadPolicy) public: + enum IconLoadPolicy + { + LoadSynchronously, + LoadAsynchronouslyWhenScrolling, + LoadAsynchronouslyAlways + }; + enum SelectionMode { NoSelection, @@ -134,6 +142,9 @@ virtual void setItemPixmapCacheEnabled(bool enabled); bool itemPixmapCacheEnabled() const; + void setIconLoadPolicy(IconLoadPolicy policy); + IconLoadPolicy iconLoadPolicy() const; + public slots: void setCurrentIndex(const QModelIndex &index, QItemSelectionModel::SelectionFlags selectionFlag