diff -r 49c70dcc3f17 -r c863538fcbb6 hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h --- a/hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h Fri May 14 16:57:01 2010 +0300 +++ b/hgwidgets_plat/ganeswidgets_api/inc/hgwidgets.h Thu May 27 13:59:05 2010 +0300 @@ -53,7 +53,7 @@ enum HgDataRole { - HgVisibilityRole = Qt::UserRole + 1 + HgVisibilityRole = Qt::UserRole + 1 }; enum IndexFeedbackPolicy { @@ -61,15 +61,15 @@ IndexFeedbackSingleCharacter, IndexFeedbackThreeCharacter, IndexFeedbackString - }; - + }; + enum ScrollBarPolicy { ScrollBarAsNeeded = Qt::ScrollBarAsNeeded, ScrollBarAlwaysOff = Qt::ScrollBarAlwaysOff, ScrollBarAlwaysOn = Qt::ScrollBarAlwaysOn, ScrollBarAutoHide }; - + enum ItemSizePolicy { ItemSizeAutomatic, ItemSizeUserDefined @@ -112,23 +112,23 @@ bool getItemOutline(const QModelIndex& index, QPolygonF& points); Qt::Orientation scrollDirection() const; - + QList getVisibleItemIndices() const; void setIndexFeedbackPolicy( IndexFeedbackPolicy policy); IndexFeedbackPolicy indexFeedbackPolicy() const; - + void setDefaultImage(QImage defaultImage); void setItemSizePolicy(ItemSizePolicy policy); ItemSizePolicy itemSizePolicy() const; - + void setItemSize(const QSizeF& size); QSizeF itemSize() const; - + void setItemSpacing(const QSizeF& spacing); QSizeF itemSpacing() const; - + signals: void activated(const QModelIndex &index); void longPressed(const QModelIndex &index, const QPointF &coords); @@ -138,7 +138,7 @@ void aboutToChangeOrientation(); void orientationChanged(Qt::Orientation orientation); - + protected slots: void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); @@ -150,7 +150,7 @@ bool eventFilter(QObject *obj,QEvent *event); bool event(QEvent *event); - + private: Q_DECLARE_PRIVATE_D(p_ptr, HgWidget) Q_DISABLE_COPY(HgWidget) @@ -164,6 +164,7 @@ Q_PRIVATE_SLOT(d_func(), void _q_moveRows(const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)) Q_PRIVATE_SLOT(d_func(), void _q_groovePressed(qreal, Qt::Orientation)) Q_PRIVATE_SLOT(d_func(), void _q_modelReset()) + Q_PRIVATE_SLOT(d_func(), void _q_updateCurrentItem(const QModelIndex ¤t, const QModelIndex &previous)) }; #endif //HGWIDGET_H